woocommerce_shipping_prices_include_tax filter-hookWC 10.6.0

Filter to control if shipping prices include tax.

Usage

add_filter( 'woocommerce_shipping_prices_include_tax', 'wp_kama_woocommerce_shipping_prices_include_tax_filter' );

/**
 * Function for `woocommerce_shipping_prices_include_tax` filter-hook.
 * 
 * @param bool $shipping_prices_include_tax True if shipping cost is gross (includes tax), false if net.
 *
 * @return bool
 */
function wp_kama_woocommerce_shipping_prices_include_tax_filter( $shipping_prices_include_tax ){

	// filter...
	return $shipping_prices_include_tax;
}
$shipping_prices_include_tax(true|false)
True if shipping cost is gross (includes tax), false if net.
Default: false

Changelog

Since 10.6.0 Introduced.

Where the hook is called

WC_Tax::calc_shipping_tax()
woocommerce_shipping_prices_include_tax
WC_Shipping_Method::add_rate()
woocommerce_shipping_prices_include_tax
woocommerce/includes/class-wc-tax.php 93
$shipping_prices_include_tax = wc_string_to_bool( apply_filters( 'woocommerce_shipping_prices_include_tax', false ) );
woocommerce/includes/abstracts/abstract-wc-shipping-method.php 334
$shipping_prices_include_tax = wc_string_to_bool( apply_filters( 'woocommerce_shipping_prices_include_tax', false ) );

Where the hook is used in WooCommerce

Usage not found.