remove_role( string $role )
Remove role, if it exists.
Description Description
Parameters Parameters
- $role
-
(string) (Required) Role name.
Source Source
File: wp-includes/capabilities.php
function remove_role( $role ) { wp_roles()->remove_role( $role ); }
Expand full source code Collapse full source code View on Trac
Changelog Changelog
Version | Description |
---|---|
2.0.0 | Introduced. |
User Contributed Notes User Contributed Notes
You must log in before being able to contribute a note or feedback.
Example
Remove the ‘subscriber’ role if it exists.