wpseek.com
A WordPress-centric search engine for devs and theme authors



remove_role › WordPress Function

Since2.0.0
Deprecatedn/a
remove_role ( $role )
Parameters:
  • (string) $role Role name.
    Required: Yes
Defined at:
Codex:

Removes a role, if it exists.



Source

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