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 $399 one-time).

Already a member? Log in below or here.

Need help implementing a tutorial in your site or want to hire me for custom work?


Find the article helpful and wish to donate?



You need to be logged in to view and post comments.
Not a member yet? Join here.
linkedin facebook pinterest youtube rss twitter instagram facebook-blank rss-blank linkedin-blank pinterest youtube twitter instagram
%d bloggers like this: