[memb_lms_certificate]
Description
Looks up the current user's certificate for a course. When a certificate exists:
display="button"(default) renders an anchor styled as an enrollment/continue button.display="url"returns the raw certificate URL.
Renders nothing when the course can't be resolved or no certificate exists for the user.
The HTML this shortcode renders comes from a template you can override in your theme. See Shortcode Templates.
Shortcode Examples
[memb_lms_certificate course_id="123"]
Raw URL and custom label:
[memb_lms_certificate course_id="123" display="url"]
[memb_lms_certificate course_id="123" label="Download Your Certificate"]
Shortcode Parameters
course_id
Course ID. When 0, resolved from the current post context (course,
module, or lesson). Default: 0.
display
button or url. Default: 'button'.
label
Button label. Default: 'View Certificate'.
class
Extra CSS classes appended to the button. Default: ''.
Shortcode Attributes
| Attribute | Value |
|---|---|
| Conditional | No |
| Nestable | No |
| Accepts formatting | No |
Hooks
Certificate verification fires
wpal/torii/sushi_lms/certificate_verify_before and
certificate_verify_after (actions) around the verification output.