[memb_course_unenroll]
Description
Action shortcode: unenrolls the user via LLMS_Student::unenroll(),
skipping the call when not enrolled. Only operates on singular pages,
for logged-in users, when the target is a real LifterLMS course
post. Any other condition is a silent no-op. Returns no output.
Shortcode Examples
[memb_course_unenroll course_id="123"]
Unenroll a specific user:
[memb_course_unenroll course_id="123" user_id="42"]
Shortcode Parameters
course_id
LifterLMS course post ID. Required. Default: 0.
user_id
User to unenroll. Default: 0 (current user).
Shortcode Attributes
| Attribute | Value |
|---|---|
| Conditional | No |
| Nestable | No |
| Accepts formatting | No |