woocommerce_calc_tax

woocommerce_calc_tax

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

See hook in core

Displaying hooks found in version: woocommerce.9.8.1

apply_filters('woocommerce_calc_tax') is found 1 times:

  • /includes/class-wc-tax.php line 74
    70
    71
    72
    73
    74
    75
    76
    77
    78
    79
    80
            $taxes = self::calc_inclusive_tax( $price, $rates );
        } else {
            $taxes = self::calc_exclusive_tax( $price, $rates );
        }
        return apply_filters( 'woocommerce_calc_tax', $taxes, $price, $rates, $price_includes_tax, $deprecated );
    }
     
    /**
     * Calculate the shipping tax using a passed array of rates.
     *
     * @param float $price Shipping cost.