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

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


Description Description

For now excludes quizzes at lesson and topic level.

Replaced by learndash_get_course_steps in 3.4.0.


Parameters Parameters

$course_id

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

$include_post_types

(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')


Top ↑

Return Return

(array) An array of all course steps.


Top ↑

Source Source

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


			

Top ↑

Changelog Changelog

Changelog
Version Description
2.3.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.