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 #
Parameters #
- $course_id
-
(int) (Optional) Course ID. Default 0.
- $step_id
-
(int) (Optional) The ID of step to get child steps. Default 0.
- $child_type
-
(string) (Optional) The type of the child steps to get.
Default value: ''
- $return_type
-
(string) (Optional) Return type. Other values 'objects'.
Default value: 'ids'
- $nested
-
(bool) (Optional) Wether to traverse substeps.
Default value: false
Return #
(array) An array of child step IDs.
Source #
Changelog #
Version | Description |
---|---|
2.5.0 | Introduced. |