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

0

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

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';
}
Posted by: Guest on June-24-2021

Code answers related to "Change COD default order status to “On Hold” instead of “Processing” in Woocommerce"

Browse Popular Code Answers by Language