woocommerce_bacs_process_payment_order_status

woocommerce_bacs_process_payment_order_status

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

See hook in core

Displaying hooks found in version: woocommerce.8.7.0

apply_filters('woocommerce_bacs_process_payment_order_status') is found 1 times:

  • /includes/gateways/bacs/class-wc-gateway-bacs.php line 390
    		$order = wc_get_order( $order_id );
    
    		if ( $order->get_total() > 0 ) {
    			// Mark as on-hold (we're awaiting the payment).
    			$order->update_status( apply_filters( 'woocommerce_bacs_process_payment_order_status', 'on-hold', $order ), __( 'Awaiting BACS payment', 'woocommerce' ) );
    		} else {
    			$order->payment_complete();
    		}
    
    		// Remove cart.
    		WC()->cart->empty_cart();