learndash_course_get_single_parent_step

learndash_course_get_single_parent_step( int $course_id,  int $step_id,  string $step_type = '' )

Gets the single parent step ID for a given step ID in a course.


Description #


Parameters #

$course_id

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

$step_id

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

$step_type

(string) (Optional) The type of the step.

Default value: ''


Return #

(int) The parent step ID.


Source #

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