woocommerce_calculate_item_totals_taxes хук-фильтрWC 1.0

Использование

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
-

Где вызывается хук

WC_Cart_Totals::calculate_item_totals()
woocommerce_calculate_item_totals_taxes
woocommerce/includes/class-wc-cart-totals.php 680
$total_taxes     = apply_filters( 'woocommerce_calculate_item_totals_taxes', WC_Tax::calc_tax( $item->total, $item->tax_rates, $item->price_includes_tax ), $item, $this );

Где используется хук в WooCommerce

Использование не найдено.