Thinkific Shortcodes for WooCommerce

Important Notice: Plugin Shortcode Compatibility

Our plugin versions 2.x and 3.x use the same shortcodes for backwards compatibility. However, enabling both plugins simultaneously is not recommended and may lead to unexpected or erroneous behaviour with shortcodes.

  1. Do not use both plugin versions (2.x and 3.x) simultaneously.
  2. If you must enable both versions, avoid using shortcodes entirely to prevent conflicts.

For the best experience, we recommend using the latest plugin version (3.x) only.

Helpful Hints & Notes - Read Carefully

  1. Shortcodes that produce multiple pages of data have the ability to access 'limit' and 'page' parameters. We do not recommend paging with shortcodes as they are not designed for large data consumption.
  2. Tables and card outputs can be controlled by passing parameters as seen on the Thinkific API docs. For example, when outputting a user, you can pass 'headings' and include parameters such as "company", "bio" etc
  3. Most shortcodes are cached for 15 mins to avoid excessive API calls.
  4. Any shortcode which expects a logged in user e.g. User enrollments, can accept an 'email' parameter to change the email that should be searched for in Thinkific.
  5. Shortcodes are intended for use by developers. WooNinja does not offer customisation support for their use as part of our general support contract.

Developers

  • Extensive filters are available to alter and modify the outputs of the shortcodes. See the 'shortcodes' folder of the plugin codebase for further information.

Users

[thinkific_express_link]

Generate the 'Express Sign In' link for a user. This only works in Thinkific if the user has not set their Thinkific password. Otherwise, they will be redirected to the regular Thinkific login screen.

[thinkific_user_account]

Generate a link to the Thinkific User account page.

[thinkific_users]

List out all users in the Thinkific system. Be very cautious using this code as it may expose your user's details to the public. Only place this shortcode in areas where an admin can see it.

[thinkific_user user_id="66687743"]

Output the given user_id account from Thinkific. Option to pass additional headers (See notes above) e.g.

[thinkific_user user_id="66687743" headings="first_name, avatar_url, bio"]

Enrollments

[thinkific_enrollments]

List all enrollments for the given logged-in user. Displayed as a table. Supports pagination.

[thinkific_enrollment enrollment_id="469632070"]

Display a single enrollment by Enrollment ID. Option to pass additional headers, e.g.

[thinkific_enrollment enrollment_id="469632070" headings="created_at, expiry_date, course_name"]

Products

Note: "Products" refers to both Courses and Bundles as per the Products API in Thinkific

[thinkific_is_enrolled_in_product productable_id="120008"]
This text will be shown if the user is enrolled a Thinkific product with ID 12008
[/thinkific_is_enrolled_in_product]

Show/hide content on a page between the shortcodes based on whether a user is enrolled or not in a given Product ID.

[thinkific_product_field productable_id="120008" field="seo_description"]

Output a single field from the Product data i.e "seo_description". See the Product API for applicable fields

[thinkific_product_chapters productable_id="120008" include_url=true]

Output the chapters of the product with ID 12008, including URLs. The URLs are clickable and allow users to jump directly into that chapter.


Courses

Note: Product IDs and Course IDs are not the same.

[thinkific_courses]

List all Thinkific Courses. To retrieve the course_id for other shortcodes, you could optionally pass the ID:

[thinkific_courses headings="id, name, description, price"]

[thinkific_course course_id="1267351"]

Output a single course. See the Thinkific Courses API for applicable fields. Defaults to all fields.

[thinkific_course_take course_id="1267351"]

Outputs the link so a user can begin a course i.e. Open the course player in Thinkific.

[thinkific_course_checkout_link course_id="1267351"]

Outputs a link to the Thinkifc checkout—defaults to the first non-zero price. Alternatively, the price ID can be passed as a parameter. See the Product API in Thinkific for price id information

Still need help? Contact Us Contact Us