Forked from jesseeproductions/tickets-plus-disable-tax.php
Last active
September 19, 2019 18:53
-
-
Save sisaacrussell/7157d34cca633400a37c77162bffc63d to your computer and use it in GitHub Desktop.
Event Tickets Plus - Disable Taxes for Ticket 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 | |
/** | |
* 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