remove_role
Remove role, if it exists.
Description
remove_role( (string) $role );
Parameters (1)
- 0. $role (string)
- Role name.
Usage
if ( !function_exists( 'remove_role' ) ) { require_once ABSPATH . WPINC . '/capabilities.php'; } // Role name. $role = ''; // NOTICE! Understand what this does before running. $result = remove_role($role);
Defined (1)
The function is defined in the following location(s).
- /wp-includes/capabilities.php
- function remove_role( $role ) {
- wp_roles)->remove_role( $role );
- }