Menu Close

Change Check Payment Status From Pending to Processing

In this little snippet, we are going to change the Check payment status from Pending to Processing when a check payment is made. This might come in handy for testing purposes. Since Check payments are often used as test payments when other payment methods are unavailable, you would want the payment status on the administrative end to reflect the same status as a credit card payment for instance which is Processing.

Here is the code snippet to place in the child theme’s Functions.php file:

add_filter( 'woocommerce_bacs_process_payment_order_status','filter_process_payment_order_status_callback', 10, 2 );
add_filter( 'woocommerce_cheque_process_payment_order_status','filter_process_payment_order_status_callback', 10, 2 );
function filter_process_payment_order_status_callback( $status, $order ) {
return 'processing';
}

This snippet has been tested and works.