Alert: This function’s access is marked private. This means it is not intended for use by plugin or theme developers, only in other core functions. It is listed here for completeness.


Retrieve a list of Instructors to be used for Filtering

Return Return


Top ↑

Source Source

File: includes/admin/reporting/tables/

	private function get_instructor_filters() {

		$query = get_users(
				'fields'   => array( 'ID', 'display_name' ),
				'meta_key' => 'last_name',
				'orderby'  => 'meta_value',
				'role__in' => array( 'administrator', 'lms_manager', 'instructor', 'instructors_assistant' ),

		$instructors = wp_list_pluck( $query, 'display_name', 'ID' );

		return $instructors;


Top ↑

Changelog Changelog

Version Description
3.15.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

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