learndash_get_topic_list

learndash_get_topic_list( int|null $for_lesson_id = null,  int|null $course_id = null )

Gets the topics list for a lesson.


Description #


Parameters #

$for_lesson_id

(int|null) (Optional) The ID of the lesson to get topics.

Default value: null

$course_id

(int|null) (Optional) Course ID.

Default value: null


Return #

(array) An array of topics list.


Source #

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


Changelog #

Changelog
Version Description
2.1.0 Introduced.