Skip to main content

mbr_lms_show_course_enrollment

Usage​

This shortcode returns the enrollment button for a course.

Parameters​

ParametersDescription
course_idThe 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​

Display the course enrollment if the shortcode is placed on the course to which the enrollment should be apply:

[mbr_lms_show_course_enrollment]