learndash_can_complete_step

learndash_can_complete_step( int $user_id,  int $step_id,  int $course_id )

Check if the user can complete the current step.


Description #

This is mostly used before auto-completing a prent step like a quiz parent lesson.


Parameters #

$user_id

(int) (Required) User ID.

$step_id

(int) (Required) Course Step ID.

$course_id

(int) (Required) Course ID.


Return #

(boolean) True if can complete.


Source #

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


Changelog #

Changelog
Version Description
3.2.1 Introduced.