Browse: Home / Classes / SFWD_LMS /


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 #


(int) (Optional) Course ID.

Default value: null


(bool) (Optional) Whether to include topics.

Default value: true


(bool) (Optional) Whether to include default.

Default value: true

Return #

(array) array of lessons or topics

Source #

File: includes/class-ld-lms.php

Changelog #

Version Description
2.1.0 Introduced.