LLMS_Post_Instructors::get_instructors( boolean $exclude_hidden = false )

Retrieve course instructor information


Description Description


Parameters Parameters

$exclude_hidden

(Optional) If true, excludes hidden instructors from the return array.

Default value: false


Top ↑

Return Return

(array[]) Array or instructor data arrays.

  • 'id'
    (int) WP_User ID of the instructor user.
  • 'visibility'
    (string) Display visibility option for the instructor.
  • 'label'
    (string) User input display noun for the instructor. EG: "Author" or "Coach" or "Instructor".
  • 'name'
    (string) WP_User Display Name.


Top ↑

Source Source

File: includes/models/model.llms.post.instructors.php


			

Top ↑

Changelog Changelog

Changelog
Version Description
4.2.0 Normalize return data when no instructor data is saved.
3.23.0 Unknown.
3.13.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

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