Skip to content

Instantly share code, notes, and snippets.

@grola
Last active April 5, 2018 12:44
Show Gist options
  • Save grola/762eabb0c39df41c0b01ae7c2f752981 to your computer and use it in GitHub Desktop.
Save grola/762eabb0c39df41c0b01ae7c2f752981 to your computer and use it in GitHub Desktop.
Flexible shipping: prices include tax
<?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