I need help with a problem-related to plugin \"WooCommerce Pay for Payment\" which counting some extra fee in shipping. Problem is, that this plugin sets automatically \"pro
two solution above are same except:
but for my WP5.1.1 and WC3.5.7
function change_cod_payment_order_status( $order_status, $order ) {
return 'on-hold';
}
generating an error
PHP Fatal error: Uncaught ArgumentCountError: Too few arguments to function change_cod_payment_order_status()
so I prefer use the code with only one argument in a main function