Created
January 24, 2015 16:22
-
-
Save dennisnissle/b413200a83746d6fb0a6 to your computer and use it in GitHub Desktop.
Hide estimated text 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
<?php | |
add_action( 'woocommerce_cart_totals_after_order_total', 'my_theme_hide_cart_estimated_text' ); | |
add_action( 'woocommerce_after_cart_totals', 'my_theme_remove_cart_tax_zero_filter' ); | |
function my_theme_hide_cart_estimated_text() { | |
add_filter( 'woocommerce_get_cart_tax', 'my_theme_set_cart_tax_zero' ); | |
} | |
function my_theme_set_cart_tax_zero( $tax ) { | |
return 0; | |
} | |
function my_theme_remove_cart_tax_zero_filter() { | |
remove_filter( 'woocommerce_get_cart_tax', 'my_theme_set_cart_tax_zero' ); | |
} | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment