Forked from jesseeproductions/tickets-plus-disable-tax.php
Created
December 5, 2017 21:21
-
-
Save vicskf/beb96c24fa2e0ba10ea34449fede6f1d to your computer and use it in GitHub Desktop.
Event Tickets Plus - Disable Taxes for Ticket Products
This file contains hidden or 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
/** | |
* 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' ); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment