Created
October 3, 2016 13:28
-
-
Save GeoffEW/4246401bb310ae087640ce7bf0b83937 to your computer and use it in GitHub Desktop.
Enable tickets to added to products
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* Tribe, allow products to be an option to add ticket to in 'Events > Tickets > Settings' */ | |
/* WARNING: this brought issues to customers in the past, so activate at your own risk */ | |
if ( class_exists('Tribe__Tickets_Plus__Commerce__WooCommerce__Main') ) { | |
remove_filter( 'tribe_tickets_settings_post_types', array( Tribe__Tickets_Plus__Commerce__WooCommerce__Main::get_instance(), 'exclude_product_post_type' ) ); | |
} |
Hey Cealin,
I would recommend reaching out to the good folks at Modern Tribe directly https://support.theeventscalendar.com/ as I have been a bit out of that loop for over a year now :-)
Best regards!
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The function doesn't seem to work anymore with newer versions. Any updated function available? :)