LLMS_REST_Instructors_Controller::get_instructor_roles()
Retrieve the list of roles considered instructors for this endpoint.
Return Return
(string[])
Source Source
File: libraries/lifterlms-rest/includes/server/class-llms-rest-instructors-controller.php
protected function get_instructor_roles() {
/**
* Filters the list of user roles served by the instructors REST endpoint.
*
* @since 1.0.6
*
* @param string[] $roles List of role keys treated as instructors.
*/
return apply_filters(
'llms_rest_instructor_roles',
array( 'instructor', 'instructors_assistant' )
);
}
Expand full source code Collapse full source code View on GitHub
Changelog Changelog
| Version | Description |
|---|---|
| 1.0.6 | Introduced. |