woocommerce_calc_shipping_tax
Usage
add_filter( 'woocommerce_calc_shipping_tax', 'wp_kama_woocommerce_calc_shipping_tax_filter', 10, 3 ); /** * Function for `woocommerce_calc_shipping_tax` filter-hook. * * @param $taxes * @param $price * @param $rates * * @return */ function wp_kama_woocommerce_calc_shipping_tax_filter( $taxes, $price, $rates ){ // filter... return $taxes; }
- $taxes
- -
- $price
- -
- $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 );