Browse: Home / Functions /


learndash_user_get_course_progress( integer $user_id,  integer $course_id,  string $type = 'legacy' )

Utility function to get a user’s progress for a single course.

Description #

Parameters #


(integer) (Required) User ID.


(integer) (Required) Course ID.


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

Default value: 'legacy'

Return #

(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 #

Version Description
3.4.0 Introduced.