Browse: Home / Functions /

learndash_get_topic_list_legacy

This function has been deprecated. Use learndash_get_topic_list instead.

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

LEGACY: Gets the topics list for a lesson.


Description #

Replaced by learndash_get_topic_list in 3.4.0.


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/deprecated/5.0.0/functions.php


Changelog #

Changelog
Version Description
5.0.0 Use learndash_get_topic_list instead.
2.1.0 Introduced. This function has been deprecated. Use learndash_get_topic_list instead.