Browse: Home / Functions /


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 #


(int) (Required) User ID.


(int) (Required) Course Step ID.


(int) (Required) Course ID.

Return #

(boolean) True if can complete.

Source #

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

Changelog #

Version Description
3.2.3 Introduced.