I am working with the Wordpress Events Calendar & Event Tickets plugin.
I have created a category page for online events (the category is called 'online') and need to target the ticket so that it only allows one ticket to be purchased at a time.
I have found the following filter for my functions.php file from the Modern Tribe knowledge base, which works perfectly. But I need to be able to write this into a statement which would only target this specific category. Can anyone help please?
add_filter( 'tribe_tickets_get_ticket_max_purchase', function() { return 1; } );