wp_ensure_editable_role
wp_ensure_editable_role ( $role )
Parameters:- (string) role Role the user is attempting to assign.
Defined at: - Introduced in WordPress: 6.8.0
- Deprecated in WordPress: —
Description
Stop execution if the role can not be assigned by the current user.