learndash_process_mark_complete_legacy( int|null $user_id = null, int|null $postid = null, boolean $onlycalculate = false, int $course_id )

LEGACY: Updates the user meta with completion status for any resource.


Description Description

Replaced by learndash_process_mark_complete in 3.4.0.


Parameters Parameters

$user_id

(Optional) User ID.

Default value: null

$postid

(Optional) The ID of the resource like course, lesson, topic, etc.

Default value: null

$onlycalculate

(Optional) Whether to mark the resource as complete.

Default value: false

$course_id

(Optional) Course ID. Default 0.


Top ↑

Return Return

(boolean) Returns true if the meta is updated successfully otherwise false.


Top ↑

Source Source

File: includes/course/ld-course-functions-legacy.php


			

Top ↑

Changelog Changelog

Changelog
Version Description
2.1.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

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