Browse: Home / Functions /


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 #


(int) (Optional) Course ID. Default 0.


(int) (Optional) The ID of step to get child steps. Default 0.


(string) (Optional) The type of the child steps to get.

Default value: ''


(string) (Optional) Return type. Other values 'objects'.

Default value: 'ids'


(bool) (Optional) Wether to traverse substeps.

Default value: false

Return #

(array) An array of child step IDs.

Source #

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

Changelog #

Version Description
2.5.0 Introduced.