learndash_get_topic_list( int|null $lesson_id = null, int|null $course_id = null )
Gets the topics list for a lesson.
Description #
Parameters #
- $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 #
Changelog #
| Version | Description |
|---|---|
| 5.0.0 | Removed the option to use learndash_get_topic_list_legacy. |
| 2.1.0 | Introduced. |