This function has been deprecated. Use learndash_get_course_progress instead.
learndash_get_course_progress_legacy( int|null $user_id = null, int|null $postid = null, int|null $course_id = null )
LEGACY: Gets the user’s current course progress.
Description #
Replaced by learndash_get_course_progress in 3.4.0.
Parameters #
- $user_id
-
(int|null) (Optional) User ID.
Default value: null
- $postid
-
(int|null) (Optional) Post ID.
Default value: null
- $course_id
-
(int|null) (Optional) Course ID.
Default value: null
Return #
(array) An array of user's current course progress.
Source #
Changelog #
| Version | Description |
|---|---|
| 5.0.0 | Use learndash_get_course_progress instead. |
| 2.1.0 | Introduced. This function has been deprecated. Use learndash_get_course_progress instead. |