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.8.1

apply_filters('woocommerce_price_ex_tax_amount') is found 2 times:

  • /includes/class-wc-tax.php line 177
    173
    174
    175
    176
    177
    178
    179
    180
    181
    182
    183
        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
    191
    192
    193
    194
    195
    196
    197
    198
    199
    200
    201
        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;
    }