Skip to content

Instantly share code, notes, and snippets.

@bmakowski
Created October 28, 2016 11:58
Show Gist options
  • Save bmakowski/46f105d04c8db90722342f52531da9be to your computer and use it in GitHub Desktop.
Save bmakowski/46f105d04c8db90722342f52531da9be to your computer and use it in GitHub Desktop.
WooCommerce Remove Shipping Tax from Order Total
<?php
function action_woocommerce_calculate_totals( ) {
global $woocommerce;
$woocommerce->cart->shipping_tax_total = 0;
};
add_action( 'woocommerce_calculate_totals', 'action_woocommerce_calculate_totals', 10, 1 );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment