12% off of LTD using this coupon: TWELVEPERCENTOFF. Promo ends on 2 Dec midnight UTC.
Published on Apr 22, 2021

Course Category condition for Tutor LMS in Oxygen

Sridhar Katakam

In the WPDevDesign Facebook group a user asks:

Hi all! ???? anyone know if we can manually create our own conditions in Oxygen? I was wanting to make one related to another plugin - Tutor LMS and if a course has a specific category - is this possible?

This members-only tutorial provides the steps to register a custom condition in Oxygen for checking whether the current Tutor LMS course has the specified category (or categories) assigned to it.

This enables you to conditionally output elements on single course template. For example, you can show different content depending on which category the course belongs to.

Can also be applied to the Div of a Repeater that is set to output all the courses - either default (recommended) or custom/manual/advanced queries.

We shall add both the == and != operators.

Step 1

Install and activate Code Snippets plugin.

Go to Snippets > Add New.

Title: [Condition] Course Category


This is a premium members-only content.

To view the rest of the content, please sign up for membership ($47/month or $599 one-time).

Already a member? Log in below or here.