learndash_course_get_completed_steps

learndash_course_get_completed_steps( int $user_id,  int $course_id,  array $course_progress = array() )

Gets the total completed steps for a given course progress array.


Description #


Parameters #

$user_id

(int) (Optional) The ID of the user. Default 0.

$course_id

(int) (Optional) The ID of the course. Default 0.

$course_progress

(array) (Optional) An array of course progress data.

Default value: array()


Return #

(int) The count of completed course steps.


Source #

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