woocommerce_price_ex_tax_amount

woocommerce_price_ex_tax_amount

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: filter

See hook in core

Displaying hooks found in version: woocommerce.9.3.3

apply_filters('woocommerce_price_ex_tax_amount') is found 2 times:

  • /includes/class-wc-tax.php line 177
    					continue;
    				}
    
    				$tax_amount = $price * ( floatval( $rate['rate'] ) / 100 );
    				$tax_amount = apply_filters( 'woocommerce_price_ex_tax_amount', $tax_amount, $key, $rate, $price ); // ADVANCED: Allow third parties to modify this rate.
    
    				if ( ! isset( $taxes[ $key ] ) ) {
    					$taxes[ $key ] = (float) $tax_amount;
    				} else {
    					$taxes[ $key ] += (float) $tax_amount;
    				}
    
  • /includes/class-wc-tax.php line 195
    					continue;
    				}
    				$the_price_inc_tax = $price + $pre_compound_total;
    				$tax_amount        = $the_price_inc_tax * ( floatval( $rate['rate'] ) / 100 );
    				$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.
    
    				if ( ! isset( $taxes[ $key ] ) ) {
    					$taxes[ $key ] = (float) $tax_amount;
    				} else {
    					$taxes[ $key ] += (float) $tax_amount;
    				}