woocommerce_price_inc_tax_amount, $price – $net_price, $key, $rates[ $key ], $price

woocommerce_price_inc_tax_amount, $price – $net_price, $key, $rates[ $key ], $price

Appears in:
Hook Type: filter

See hook in core

Displaying hooks found in version: woocommerce.11.0.0

apply_filters('woocommerce_price_inc_tax_amount, $price – $net_price, $key, $rates[ $key ], $price') is found 1 times:

  • /includes/class-wc-tax.php line 160
     
    		foreach ( $regular_rates as $key => $regular_rate ) {
    			$the_rate       = ( $regular_rate / 100 ) / $regular_tax_rate;
    			$net_price      = $price - ( $the_rate * $non_compound_price );
    			$tax_amount     = apply_filters( 'woocommerce_price_inc_tax_amount', $price - $net_price, $key, $rates[ $key ], $price );
    			$taxes[ $key ] += $tax_amount;
    		}
    
    		/**
    		 * Round all taxes to precision (4DP) before passing them back. Note, this is not the same rounding
    		 * as in the cart calculation class which, depending on settings, will round to 2DP when calculating