remove_role( string $role )
Remove role, if it exists.
Parameters
- $role
-
(string) (Required) Role name.
Source
File: wp-includes/capabilities.php
function remove_role( $role ) { wp_roles()->remove_role( $role ); }
Changelog
Version | Description |
---|---|
2.0.0 | Introduced. |
© 2003–2021 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/functions/remove_role