remove_role( string $role )
Remove role, if it exists.
Parameters
- $role
-
(Required) Role name.
Source
File: wp-includes/capabilities.php
function remove_role( $role ) {
wp_roles()->remove_role( $role );
}
Changelog
Version | Description |
---|---|
WP-2.0.0 | Introduced. |