[memb_lms_course_progress]

Description

Shows the enrolled user's completion percentage for a course, with optional label and lesson count. Renders nothing when the course can't be resolved or the user isn't enrolled.

The HTML this shortcode renders comes from a template you can override in your theme. See Shortcode Templates.

Shortcode Examples

[memb_lms_course_progress]

Compact, no label or count:

[memb_lms_course_progress course_id="123" show_label="false" show_count="false"]

Shortcode Parameters

course_id

Course ID. When 0, resolved from the current post context (course, module, or lesson). Default: 0.

show_label

Display the progress label. Default: 'true'.

show_count

Display "X of Y lessons completed". Default: 'true'.

Shortcode Attributes

Attribute Value
Conditional No
Nestable No
Accepts formatting No

Hooks

wpal/torii/sushi_lms/course_progress_before and course_progress_after (actions) wrap the progress output.