What’s the current method for retrieving the Event ID from the Ticket ID?
I ran across this one in another post but I guess it no longer works:
$tribe_woo = Tribe__Events__Tickets__Woo__Main::get_instance();
$ticket_product = class_exists( 'WC_Product_Simple' ) ? new WC_Product_Simple( $ticket_id ) : new WC_Product( $ticket_id );
If you have that $ticket_id variable, you should be able to get the Event ID for the event with which it’s associated by using code like the following: