Last active
April 5, 2018 12:44
-
-
Save grola/762eabb0c39df41c0b01ae7c2f752981 to your computer and use it in GitHub Desktop.
Flexible shipping: prices include tax
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_filter( 'flexible_shipping_prices_include_tax', 'wpdesk_flexible_shipping_prices_include_tax' ); | |
function wpdesk_flexible_shipping_prices_include_tax() { | |
return 'yes' === get_option( 'woocommerce_prices_include_tax', 'no' ); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment