WordPress at a glance

remove_role() WP 1.0

Remove role, if it exists.

Works based on: wp_roles(), WP_Roles()

No Hooks.

Return

Nothing (null).

Usage

remove_role( $role );
$role(string) (required)
Role name.

Code of remove_role: wp-includes/capabilities.php VER 4.9.8

<?php
function remove_role( $role ) {
	wp_roles()->remove_role( $role );
}

Related Functions

From tag: Roles capabilities

No comments
    Hello, !     Log In . Register