Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save sisaacrussell/7157d34cca633400a37c77162bffc63d to your computer and use it in GitHub Desktop.
Save sisaacrussell/7157d34cca633400a37c77162bffc63d to your computer and use it in GitHub Desktop.
Event Tickets Plus - Disable Taxes for Ticket Products
<?php
/**
* Event Tickets Plus - Disable Taxes for Ticket Products
*/
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' );
}
add_action( 'event_tickets_after_save_ticket', 'tribe_disable_taxes_ticket_product', 10, 2 );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment