Browse: Home / Functions /


learndash_get_course_lessons_list_legacy( int|WP_Post|null $course = null,  int|null $user_id = null,  array $lessons_args = array() )

LEGACY: Gets the lesson list output for a course.

Description #

Replaced by learndash_get_course_lessons_list in 3.4.0.

Parameters #


(int|WP_Post|null) (Optional) The WP_Post course object or course ID.

Default value: null


(int|null) (Optional) User ID.

Default value: null


(array) (Optional) An array of query arguments to get lesson list.

Default value: array()

Return #

(array) The lesson list array.

Source #

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

Changelog #

Version Description
2.1.0 Introduced.