learndash_get_course_steps( int $course_id,  array $include_post_types = array('sfwd-lessons', 'sfwd-topic') )

Gets all the lessons and topics for a given course ID.

Description #

For now excludes quizzes at lesson and topic level.

Parameters #


(int) (Optional) The ID of the course. Default 0.


(array) (Optional) An array of post types to include in course steps. Default array contains 'sfwd-lessons' and 'sfwd-topic'.

Default value: array('sfwd-lessons', 'sfwd-topic')

Return #

(array) An array of all course steps.

Source #

File: includes/course/ld-course-functions.php