Home › Forums › Front-end Issues › Front-end user registration › Reply To: Front-end user registration
I think I got it: if I move the is_user_logged_in()
part to the bottom of the form, just before the submit button, it correctly passes the user ID to acf_create_new_user()
. I suppose that all those instances of acf_form()
reset the post ID?
Do you have any thoughts on my other question, why wp_redirect()
isn’t working after form submission? To reiterate, I don’t want to use acf_form( 'return' => 'some-url' )
because the redirects are conditional (e.g. user already exists, user was registered, etc.).
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.