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 Description

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


Parameters Parameters

$user_id

(Optional) User ID. Default 0.

$course_id

(Optional) Course ID. Default 0.

$step_id

(Optional) Step ID. Default 0.

$step_complete

(Optional) Unused.

Default value: false


Top ↑

Return Return

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


Top ↑

Source Source

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


			

Top ↑

Changelog Changelog

Changelog
Version Description
2.5.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.