learndash_user_set_course_progress( integer $user_id, integer $course_id, array $progress = array() )
Utility function to update a user’s course progress instance.
Description #
Parameters #
- $user_id
-
(integer) (Required) User ID.
- $course_id
-
(integer) (Required) Course ID.
- $progress
-
(array) (Optional) Array of single course user progress. Format of array should match 'legacy' structure.
Default value: array()
Source #
File: includes/classes/class-ldlms-model-user-course-progress.php
Changelog #
Version | Description |
---|---|
3.4.0 | Introduced. |