Skip to content

Instantly share code, notes, and snippets.

@jesseeproductions
Created March 2, 2016 13:51
Show Gist options
  • Save jesseeproductions/787c47f1756a18d8c05d to your computer and use it in GitHub Desktop.
Save jesseeproductions/787c47f1756a18d8c05d to your computer and use it in GitHub Desktop.

Revisions

  1. jesseeproductions created this gist Mar 2, 2016.
    8 changes: 8 additions & 0 deletions tickets-plus-disable-tax.php
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,8 @@
    /**
    * 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' );
    }