Sorry, shift+enter posted it automaticly and I couldn't find the edit, can I ask admins to merge this two entry please?
So, the script ends with the function that I shared in the first entry.
But I want to send a third parameter for displaying to custom error messages but I couldn't find anything about this function in the documentation,
Also custom redirect didn't work.
Can you please tell me how can I achieve this behavior?
Thank you.