Hello, I changed the code as per your suggestion:
add_filter( 'pronamic_payment_status_update_woocommerce', 'change_order_status', 9999, 2 );
function change_order_status( $status, $order ) {
return 'on-hold';
}
However, it didn’t work. I’m using https://www.businessbloomer.com/woocommerce-payment-gateway-order-status/ for reference.
It says:
First of all, each payment gateway, whether it’s included in WooCommerce core or not, should provide you with a handy filter hook called “woocommerce_GATEWAYID_process_payment_order_status“, where GATEWAYID needs to be changed to the payment gateway ID.
They have a separate post for finding the gateway ID https://www.businessbloomer.com/disable-payment-gateway-specific-user-role-woocommerce/. If I follow this step “pronamic_pay_razorpay” and not “pronamic_payment_status_update_woocommerce”. What am I doing wrong?