Change COD default order status to “On Hold” instead of “Processing” in Woocommerce

TIPS

Jul 31, 2022 | WooCommerce Tips | 0 comments

This function changes the COD default order status to “On Hold” instead of “Processing” in Woocommerce
[php]
/* Change COD default order status to "On Hold" instead of "Processing" in Woocommerce BEGIN */
add_filter( 'woocommerce_cod_process_payment_order_status', 'change_cod_payment_order_status', 10, 2 );
function change_cod_payment_order_status( $order_status, $order ) {
    return 'on-hold';
}
/* Change COD default order status to "On Hold" instead of "Processing" in Woocommerce END */
[/php]

0 Comments

Submit a Comment

Your email address will not be published. Required fields are marked *

More Tips

Ad - Web Hosting from SiteGround - Crafted for easy site management. Click to learn more.

Cloudways Hosting

WPEngine Hosting

Pressable Hosting

AccuWeb Hosting

Ask the Divi Guy a Question

"*" indicates required fields