woocommerce_calc_shipping_tax filter-hook . WC 1.0
Calculate the shipping tax using a passed array of rates.
Usage
add_filter( 'woocommerce_calc_shipping_tax', 'filter_function_name_2766', 10, 2 ); function filter_function_name_2766( $price, $rates ){ // filter... return $price; }
- $price(float)
- Shipping cost.
- $rates
- -
Where the hook is called
woocommerce_calc_shipping_tax
woocommerce/includes/class-wc-tax.php 86
return apply_filters( 'woocommerce_calc_shipping_tax', $taxes, $price, $rates );