LLMS_REST_Instructors_Controller::get_instructor_roles()

Retrieve the list of roles considered instructors for this endpoint.


Return Return

(string[])


Top ↑

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' )
		);
	}


Top ↑

Changelog Changelog

Changelog
Version Description
1.0.6 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.