Browse: Home / Functions /

learndash_process_mark_incomplete

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 #

$user_id

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

$course_id

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

$step_id

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

$step_complete

(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 #

Changelog
Version Description
2.5.0 Introduced.