Home › Forums › Front-end Issues › Front-end user registration › Reply To: Front-end user registration
If you want to redirect in another way than using return. First of all you need to make sure you take care of all of the saving of everything in your pre_save_post filter. If there are additional values that ACF needs to update, this will not happen if you do not return from your function. The reason I say this is that you need to exit completely after performing the redirect
wp_redirect( home_url() . '/sign-in/?new_user=true&user_email=' . $candidate_email );
exit;
Would it be possible to generate the return value for acf_form() before calling it and set the ‘return’ value based on whether or not it’s a new user?
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users
Helping others is a great way to earn karma, gain badges and help ACF development!
We use cookies to offer you a better browsing experience, analyze site traffic and personalize content. Read about how we use cookies and how you can control them in our Privacy Policy. If you continue to use this site, you consent to our use of cookies.