AmeriCOM – LP Certificate Button Shortcode
Shortcode: [lp_certificate_button]
Quick Start
- Ensure LearnPress and LearnPress Certificates add-on are active.
- Attach a certificate template to your course (Course settings → Certificates).
- Place the shortcode on any page:
[lp_certificate_button course_id="1234" label="Certificate" class="lp-button" show_login_prompt="yes"]
Attributes
course_id– required when not on a single course page.label– button text (default: Certificate).class– CSS classes for styling (default: lp-button).show_login_prompt–yes/no, show login link if user is logged out.
Behavior
- Hides button for logged-out users (unless
show_login_prompt="yes"). - Shows disabled button until the user finishes the course.
- When finished, mirrors the LearnPress Certificates button behavior.
Troubleshooting
- No button? Verify the course has a certificate attached.
- Not finished? The button is disabled until the user completes the course.
- Custom templates? The plugin tries the LearnPress template first, then falls back to a safe form.