LLMS_Course::get_instructors( boolean $exclude_hidden = false )

Retrieve course instructor information


Parameters Parameters

$exclude_hidden

(boolean) (Optional) If true, excludes hidden instructors from the return array. Default is false.

Default value: false


Top ↑

Return Return

(array)


Top ↑

Source Source

File: includes/models/model.llms.course.php

		 * @since 3.13.0
		 *
		 * @param array       $instructors    Instructor data array.
		 * @param LLMS_Course $course         Course object.
		 * @param boolearn    $exclude_hidden If true, excludes hidden instructors from the return array.
		 */
		return apply_filters(
			'llms_course_get_instructors',
			$this->instructors()->get_instructors( $exclude_hidden ),
			$this,
			$exclude_hidden
		);

	}

	/**
	 * Get course lessons
	 *
	 * @since 3.0.0


Top ↑

Changelog Changelog

Changelog
Version Description
3.13.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

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