[memb_learnpress_course_unenroll]

Description

Action shortcode: unenrolls the user via the LearnPress course bridge. Only operates on singular pages, for logged-in users, when the target is a real lp_course post. Any other condition is a silent no-op. Returns no output.

Shortcode Examples

[memb_learnpress_course_unenroll course_id="123"]

Unenroll a specific user:

[memb_learnpress_course_unenroll course_id="123" user_id="42"]

Shortcode Parameters

course_id

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