Created
November 11, 2020 18:36
-
-
Save lukecav/6a37b763e0de5c8fabaf7f6ead04ed5a to your computer and use it in GitHub Desktop.
Hide tax on the cart page in WooCommerce
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
add_action( 'wp', function() { | |
if ( class_exists( 'woocommerce') ) { | |
if ( is_cart() ) { | |
add_filter( 'wc_tax_enabled', '__return_false' ); | |
} | |
} | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
https://stackoverflow.com/questions/44135680/hide-tax-from-woocommerce-cart