learndash_course_get_children_of_step( int $course_id, int $step_id, string $child_type = '', string $return_type = 'ids', bool $nested = false )
Gets the list of children steps for a given step ID.
Description Description
Parameters Parameters
- $course_id
-
(Optional) Course ID. Default 0.
- $step_id
-
(Optional) The ID of step to get child steps. Default 0.
- $child_type
-
(Optional) The type of the child steps to get.
Default value: ''
- $return_type
-
(Optional) Return type. Default 'ids'. Other values 'objects'.
Default value: 'ids'
- $nested
-
(Optional) Wether to traverse substeps.
Default value: false
Return Return
(array) An array of child step IDs.
Source Source
File: includes/course/ld-course-steps-functions.php
Changelog Changelog
| Version | Description |
|---|---|
| 2.5.0 | Introduced. |