learndash_user_get_course_progress

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 #


Parameters #

$user_id

(integer) (Required) User ID.

$course_id

(integer) (Required) Course ID.

$progress_type

(string) (Required) Progress Type. Default 'legacy'. possible values 'legacy', 'co', 'summary'


Return #

(array) Array of single course user progress. Format of array should match 'legacy' structure.


Source #

File: includes/classes/class-ldlms-model-user-course-progress.php


Changelog #

Changelog
Version Description
3.4.0 Introduced.