learndash_course_get_all_parent_step_ids( int $course_id, int $step_id )
Gets the parent step IDs for a step in a course.
Description #
It returns the parent steps in the order of the hierarchy: from the top parent to the immediate parent.
Parameters #
- $course_id
-
(int) (Optional) The ID of the course. Default 0.
- $step_id
-
(int) (Optional) The ID of the step to get parent steps. Default 0.
Return #
(array) An array of step IDs.
Source #
Changelog #
| Version | Description |
|---|---|
| 2.5.0 | Introduced. |