I have been using the “Cash on Delivery” payment method in Woocommerce and added custom Order Status “COD” in Woocommerce. I have been using the following code to move orders to “COD” if the user selected the “COD” payment option.
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 'cod';
}