Skip to content

Instantly share code, notes, and snippets.

@jesseeproductions
Created March 2, 2016 13:51
  • Star 3 You must be signed in to star a gist
  • Fork 3 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save jesseeproductions/787c47f1756a18d8c05d to your computer and use it in GitHub Desktop.
Event Tickets Plus - Disable Taxes for Ticket Products
/**
* Event Tickets Plus - Disable Taxes for Ticket Products
*/
add_action( 'wootickets_after_save_ticket', 'tribe_disable_taxes_ticket_product' );
function tribe_disable_taxes_ticket_product( $ticket_id ) {
update_post_meta( $ticket_id, '_tax_status', 'none' );
update_post_meta( $ticket_id, '_tax_class', 'zero-rate' );
}
@vicskf
Copy link

vicskf commented Dec 5, 2017

Hi Brian!
wootickets_after_save_ticket action was removed in Event Tickets Plus 4.6.
I manged to accomplish the same using the event_tickets_after_save_ticket action
add_action( 'event_tickets_after_save_ticket', 'tribe_disable_taxes_ticket_product', 10, 2 ); function tribe_disable_taxes_ticket_product( $post_id, $ticket ) { update_post_meta( $ticket->ID, '_tax_status', 'none' ); update_post_meta( $ticket->ID, '_tax_class', 'zero-rate' ); }

@notechup
Copy link

Does this one still work? Or is there a new/different option for changing the tax rate for tickets in WooCommerce?

Copy link

ghost commented Jun 28, 2021

I used the event_tickets_after_save_ticket one today from the 12/5/17 post and it fixed the issue for me.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment