woocommerce_calc_tax
Usage
add_filter( 'woocommerce_calc_tax', 'wp_kama_woocommerce_calc_tax_filter', 10, 5 ); /** * Function for `woocommerce_calc_tax` filter-hook. * * @param $taxes * @param $price * @param $rates * @param $price_includes_tax * @param $deprecated * * @return */ function wp_kama_woocommerce_calc_tax_filter( $taxes, $price, $rates, $price_includes_tax, $deprecated ){ // filter... return $taxes; }
- $taxes
- -
- $price
- -
- $rates
- -
- $price_includes_tax
- -
- $deprecated
- -
Where the hook is called
woocommerce_calc_tax
woocommerce/includes/class-wc-tax.php 74
return apply_filters( 'woocommerce_calc_tax', $taxes, $price, $rates, $price_includes_tax, $deprecated );