Browse: Home / Classes / SFWD_LMS /

SFWD_LMS::select_a_lesson_or_topic

SFWD_LMS::select_a_lesson_or_topic( int $course_id = null,  bool $include_topics = true,  bool $include_default = true )

Makes wp_query to retrieve lessons or topics for a course


Description #


Parameters #

$course_id

(int) (Optional) Course ID.

Default value: null

$include_topics

(bool) (Optional) Whether to include topics.

Default value: true

$include_default

(bool) (Optional) Wheter to include default.

Default value: true


Return #

(array) array of lessons or topics


Source #

File: includes/class-ld-lms.php


Changelog #

Changelog
Version Description
2.1.0 Introduced.