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

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

add_filter( 'woocommerce_price_ex_tax_amount', 'wp_kama_woocommerce_price_ex_tax_amount_filter', 10, 4 );

/**
 * Function for `woocommerce_price_ex_tax_amount` filter-hook.
 * 
 * @param  $tax_amount 
 * @param  $key        
 * @param  $rate       
 * @param  $price      
 *
 * @return 
 */
function wp_kama_woocommerce_price_ex_tax_amount_filter( $tax_amount, $key, $rate, $price ){

	// filter...
	return $tax_amount;
}
$tax_amount
-
$key
-
$rate
-
$price
-

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

WC_Tax::calc_exclusive_tax()
woocommerce_price_ex_tax_amount
woocommerce/includes/class-wc-tax.php 177
$tax_amount = apply_filters( 'woocommerce_price_ex_tax_amount', $tax_amount, $key, $rate, $price ); // ADVANCED: Allow third parties to modify this rate.
woocommerce/includes/class-wc-tax.php 195
$tax_amount        = apply_filters( 'woocommerce_price_ex_tax_amount', $tax_amount, $key, $rate, $price, $the_price_inc_tax, $pre_compound_total ); // ADVANCED: Allow third parties to modify this rate.

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

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