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.
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.
Enter your email address to subscribe to this blog and receive notifications of new tutorials by email.
Join 591 other subscribers