I’m using acf_form to create a registration form and all works well. I’m hooking acf/save_post and using wp_create_user as recommended. However, if a user with the requested user name exists, wp_create_user returns an error. This is expected and correct.
* How can I display this error in the front end? I can’t just echo it, as the standard function of acf_form is that the page is refreshed after submission.
* If the submission fails, then I use return to redirect the visitor. How can I retain the values which the user entered in the registration form if the submission fails?