woocommerce_cheque_process_payment_order_status

woocommerce_cheque_process_payment_order_status

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

See hook in core

Displaying hooks found in version: woocommerce.9.3.3

apply_filters('woocommerce_cheque_process_payment_order_status') is found 1 times:

  • /includes/gateways/cheque/class-wc-gateway-cheque.php line 136
    		$order = wc_get_order( $order_id );
    
    		if ( $order->get_total() > 0 ) {
    			// Mark as on-hold (we're awaiting the cheque).
    			$order->update_status( apply_filters( 'woocommerce_cheque_process_payment_order_status', 'on-hold', $order ), _x( 'Awaiting check payment', 'Check payment method', 'woocommerce' ) );
    		} else {
    			$order->payment_complete();
    		}
    
    		// Remove cart.
    		WC()->cart->empty_cart();