mbr_lms_show_course_enrollment
Usage
This shortcode returns the enrollment button for a course.
Parameters
Parameters | Description |
---|---|
course_id | The course ID to which the button should enroll the current logged-in user. Default: The current course ID, if the current page is a course. |
Validity
This shortcode is only evaluated for logged in users who also exist as contacts within ActiveCampaign.
In all other cases, including WordPress users with the Administrator role nothing will be returned.
Conditional Branching
This shortcode does NOT support conditional branching with [ELSE_contact].
Nesting
Shortcode nesting is NOT supported.
Examples
- Example 1
- Example 2
Display the course enrollment if the shortcode is placed on the course to which the enrollment should be apply:
[mbr_lms_show_course_enrollment]
Display the course enrollment if the shortcode is not placed on the course to which the enrollment should be apply:
[mbr_lms_show_course_enrollment course_id='123']