LLMS_User_Permissions::get_editable_roles()
Get a map of roles that can be managed by LifterLMS User Roles
Return Return
(array)
Source Source
File: includes/class.llms.user.permissions.php
public static function get_editable_roles() {
/**
* Get a map of roles that can be managed by LifterLMS User Roles
*
* @since 3.13.0
*
* @param array $roles Array of user roles. The array key is the role and the value is an array of roles that can be managed by that role.
*/
$roles = apply_filters(
'llms_editable_roles',
array(
'lms_manager' => array( 'instructor', 'instructors_assistant', 'lms_manager', 'student' ),
'instructor' => array( 'instructors_assistant' ),
)
);
return $roles;
}
Expand full source code Collapse full source code View on GitHub
Changelog Changelog
| Version | Description |
|---|---|
| 3.34.0 | Introduced. |