learndash_course_get_children_of_step

learndash_course_get_children_of_step( int $course_id,  int $step_id,  string $child_type = '' )

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 #

(array) An array of child step IDs.


Source #

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