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

do_action('woocommerce_order_before_calculate_totals') is found 1 times:

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