Browse: Home / Functions /

learndash_course_get_steps_by_type

learndash_course_get_steps_by_type( int $course_id,  string $step_type = '' )

Gets the course steps by type.


Description #


Parameters #

$course_id

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

$step_type

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

Default value: ''


Return #

(array) An array of course step IDs.


Source #

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


Changelog #

Changelog
Version Description
2.5.0 Introduced.