woocommerce_calculate_item_totals_taxes
Usage
add_filter( 'woocommerce_calculate_item_totals_taxes', 'wp_kama_woocommerce_calculate_item_totals_taxes_filter', 10, 3 ); /** * Function for `woocommerce_calculate_item_totals_taxes` filter-hook. * * @param $WC_Tax::calc_tax * @param $item * @param $that * * @return */ function wp_kama_woocommerce_calculate_item_totals_taxes_filter( $WC_Tax::calc_tax, $item, $that ){ // filter... return $WC_Tax::calc_tax; }
- $WC_Tax::calc_tax
- -
- $item
- -
- $that
- -
Where the hook is called
woocommerce_calculate_item_totals_taxes
woocommerce/includes/class-wc-cart-totals.php 673
$total_taxes = apply_filters( 'woocommerce_calculate_item_totals_taxes', WC_Tax::calc_tax( $item->total, $item->tax_rates, $item->price_includes_tax ), $item, $this );