Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Enable tickets to added to products
<?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' ) );
}
@Njurus

This comment has been minimized.

Copy link

Njurus commented Feb 6, 2017

Hi @GeoffEW I would like to know how does one implement this?

@GeoffEW

This comment has been minimized.

Copy link
Owner Author

GeoffEW commented May 16, 2017

Hey Njurus, sorry I missed your message. Yikes!

Basically, you could apply the following snippet in the functions.php file of your theme (without the PHP tag at the top).

But, as stated, this is unsupported.
Best of luck!

@Cealin

This comment has been minimized.

Copy link

Cealin commented Jun 5, 2019

The function doesn't seem to work anymore with newer versions. Any updated function available? :)

@GeoffEW

This comment has been minimized.

Copy link
Owner Author

GeoffEW commented Jun 5, 2019

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
You can’t perform that action at this time.