A WordPress-centric search engine for devs and theme authors



remove_role ›

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

Remove role, if it exists.



Source

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