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

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

add_filter( 'woocommerce_price_inc_tax_amount', 'wp_kama_woocommerce_price_inc_tax_amount_filter', 10, 4 );

/**
 * Function for `woocommerce_price_inc_tax_amount` filter-hook.
 * 
 * @param  $compound_rate / 100 ) ) 
 * @param  $key                     
 * @param  $key ]                   
 * @param  $price                   
 *
 * @return 
 */
function wp_kama_woocommerce_price_inc_tax_amount_filter( $compound_rate / 100 ) ), $key, $key ], $price ){

	// filter...
	return $compound_rate / 100 ) );
}
$compound_rate / 100 ) )
-
$key
-
$key ]
-
$price
-

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

WC_Tax::calc_inclusive_tax()
woocommerce_price_inc_tax_amount
woocommerce/includes/class-wc-tax.php 134
$tax_amount         = apply_filters( 'woocommerce_price_inc_tax_amount', $non_compound_price - ( $non_compound_price / ( 1 + ( $compound_rate / 100 ) ) ), $key, $rates[ $key ], $price );
woocommerce/includes/class-wc-tax.php 145
$tax_amount     = apply_filters( 'woocommerce_price_inc_tax_amount', $price - $net_price, $key, $rates[ $key ], $price );

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

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