Core Function
View Source on Trac ↗ wp_ensure_editable_role()
wp_ensure_editable_role( mixed $role ) Stop execution if the role can not be assigned by the current user.
Parameters 1 required
| Name / Type | Description |
|---|---|
| $role string | Role the user is attempting to assign. Required |
Return Value
(void)
No return value description available.
Function Information
Since Version
6.8.0
Source File
wp-admin/includes/ms.php
Advertisement