Browse: Home / Functions /


learndash_can_complete_step( int $user_id,  int $step_id,  int $course_id,  bool $ignore_lesson_timer = false )

Check if the user can complete the current step.

Description #

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

Parameters #


(int) (Required) User ID.


(int) (Required) Course Step ID.


(int) (Required) Course ID.


(bool) (Optional) Whether to ignore the lesson timer. @since 4.0.3.

Default value: false

Return #

(bool) True if can complete.

Source #

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

Changelog #

Version Description
4.0.3 Added $ignore_lesson_timer parameter.
3.2.3 Introduced.