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

do_action('woocommerce_order_before_calculate_totals') is found 1 times:

  • /includes/abstracts/abstract-wc-order.php line 1914
    	 * @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;