woocommerce_price_ex_tax_amount
Usage
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
- -
Where the hook is called
woocommerce_price_ex_tax_amount
woocommerce/includes/class-wc-tax.php 190
$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 208
$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.