Uses
Uses | Description |
---|---|
wp-includes/capabilities.php: wp_roles() | Retrieves the global WP_Roles instance and instantiates it if necessary. |
wp-includes/class-wp-roles.php: WP_Roles::remove_role() | Remove role by name. |
Remove role, if it exists.
(string) (Required) Role name.
File: wp-includes/capabilities.php
function remove_role( $role ) { wp_roles()->remove_role( $role ); }
Version | Description |
---|---|
2.0.0 | Introduced. |
© 2003–2019 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/functions/remove_role