How to Change Check / Cheque Payments Default Order Status to Processing using Code in Woocommerce

Опубликовано: 19 Июль 2023
на канале: WebTask With Hassan
98
3

In this woocommerce tutorial for beginners you will learn how to change default order status of check payments method using custom php snippet in wordpress website. Currently check payment order status is on-hold / on hold but after adding code cheque order status change to processing after customer purchase from shop.

* Use Below Code to Change Check Payment Gateway Order Status:

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';
}

#woocommerce #check #cheque #paymentgateway #paymentmethod #processing #onhold #checkout #wordpress #wordpresstutorial #wordpresstutorialforbeginners #webtaskwithhassan #hassangilani