learndash_user_get_course_progress( integer $user_id, integer $course_id, $type = 'legacy' )
Utility function to get a user’s progress for a single course.
Description Description
Parameters Parameters
- $user_id
-
(Required) User ID.
- $course_id
-
(Required) Course ID.
- $progress_type
-
(Required) Progress Type. Default 'legacy'. possible values 'legacy', 'co', 'summary'
Return Return
(array) Array of single course user progress. Format of array should match 'legacy' structure.
Source Source
File: includes/classes/class-ldlms-model-user-course-progress.php
Changelog Changelog
Version | Description |
---|---|
3.4.0 | Introduced. |