8.3 Shortcode Reference
Each shortcode belongs to a feature and only works while that feature is enabled on the Features tab.
[gravityform-lesson]
Feature: Gravity Forms Lesson/Topic Completion
Displays the Gravity Forms form selected in the current lesson's settings. Submitting it marks the lesson complete for the logged-in learner and redirects to the next course step. Takes no parameters. The form comes from the lesson's Gravity Form for Lesson/Topic Completion setting.
[gravityform-lesson]
[gravityform-topic]
Feature: Gravity Forms Lesson/Topic Completion
The topic equivalent of [gravityform-lesson]: displays the form selected in the current topic's settings; submission completes the topic.
[gravityform-topic]
[add-group-users]
Feature: Group: Users management
Renders the group leader's user-creation interface: queue users by name and email, save each row, then create them all. Created users join the group and receive their login details by email.
| Parameter | Required | Description |
|---|---|---|
group_id | Yes | The LearnDash group to add users to. |
[add-group-users group_id="123"]
[remove-group-user]
Feature: Group: Users management
Renders a button that removes a specific user from a group. The user's WordPress account is not deleted.
| Parameter | Required | Description |
|---|---|---|
group_id | Yes | The group to remove the user from. |
user_id | Yes | The user to remove. |
class | No | Extra CSS class(es) for the button. |
[remove-group-user group_id="123" user_id="456"]
[certificate-image-2]
Feature: Certificate Image
Outputs the certificate's second featured image as a standard image tag. Outputs nothing if the certificate has no second image.
| Parameter | Required | Description |
|---|---|---|
id | Inside a certificate: no. Elsewhere: yes | The certificate post ID. |
size | No | thumbnail, medium, large, a theme-registered size, or a pixel number. Defaults to full size. |
width | No | Width in pixels; overrides size. Used for height too if height is omitted. |
height | No | Height in pixels; used with width. |
class | No | Extra CSS class(es) for the image. |
[certificate-image-2 id="456" size="medium"]
[tt_patch_user_progress]
Feature: Shortcode for patching missing progress
Invisible action shortcode: on page load, checks the given user's progress in a course up to a given step and repairs small holes. Renders no output.
| Parameter | Required | Description |
|---|---|---|
course_id | Yes | The course to patch. |
topic_id | Yes | The step the learner is trying to reach. |
user_id | No | Defaults to the logged-in user. |
[tt_patch_user_progress course_id="123" topic_id="456"]
The shortcode name uses underscores (tt_patch_user_progress), unlike the other shortcodes, which use hyphens.