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

apply_filters('woocommerce_cheque_process_payment_order_status') is found 1 times:

  • /includes/gateways/cheque/class-wc-gateway-cheque.php line 156
    			 *
    			 * @param string $status The default status.
    			 * @param object $order  The order object.
    			 */
    			$process_payment_status = apply_filters( 'woocommerce_cheque_process_payment_order_status', OrderStatus::ON_HOLD, $order );
    			// Mark as on-hold (we're awaiting the cheque).
    			$order->update_status( $process_payment_status, _x( 'Awaiting check payment', 'Check payment method', 'woocommerce' ) );
    		} else {
    			$order->payment_complete();
    		}