Browse: Home / Functions /


learndash_process_mark_incomplete( int $user_id,  int $course_id,  int $step_id,  boolean $step_complete = false )

Marks a course step incomplete for a course.

Description #

Used to set a course step ( lesson or topic only ) back to not complete status.

Parameters #


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


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


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


(boolean) (Optional) Unused.

Default value: false

Return #

(int|boolean) Returns true if the update is successful otherwise false or meta ID if the meta does not exist.

Source #

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

Changelog #

Version Description
2.5.0 Introduced.