woocommerce_price_inc_tax_amount
Usage
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
- -
Where the hook is called
woocommerce_price_inc_tax_amount
woocommerce/includes/class-wc-tax.php 147
$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 158
$tax_amount = apply_filters( 'woocommerce_price_inc_tax_amount', $price - $net_price, $key, $rates[ $key ], $price );