learndash_course_status( int $course_id, int|null $user_id = null, boolean $return_slug = false )
Outputs the current status of the course.
Description Description
Parameters Parameters
- $course_id
-
(Required) Course ID to get status.
- $user_id
-
(Optional) User ID.
Default value: null
- $return_slug
-
(Optional) If false will return translatable string otherwise the status slug.
Default value: false
Return Return
(string) The current status of the course.
Source Source
File: includes/course/ld-course-progress.php
Changelog Changelog
Version | Description |
---|---|
2.5.8 | Added $return_slug parameter. |
2.1.0 | Introduced. |