woocommerce_order_before_calculate_totals

woocommerce_order_before_calculate_totals

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: action

See hook in core

Displaying hooks found in version: woocommerce.9.8.1

do_action('woocommerce_order_before_calculate_totals') is found 1 times:

  • /includes/abstracts/abstract-wc-order.php line 1958
    1954
    1955
    1956
    1957
    1958
    1959
    1960
    1961
    1962
    1963
    * @param  bool $and_taxes Calc taxes if true.
     * @return float calculated grand total.
     */
    public function calculate_totals( $and_taxes = true ) {
        do_action( 'woocommerce_order_before_calculate_totals', $and_taxes, $this );
     
        $fees_total        = 0;
        $shipping_total    = 0;
        $cart_subtotal_tax = 0;
        $cart_total_tax    = 0;