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!
ACF wouldn’t be so widely used in WordPress if it didn’t have some pretty amazing capabilities. In this article, we look at a few of the features we’ll discuss during “7 things you didn’t know you could do with ACF” at #WPEDecode later this month. https://t.co/5lnsTxp81j pic.twitter.com/Yf0ThPG1QG— Advanced Custom Fields (@wp_acf) March 16, 2023
© 2023 Advanced Custom Fields.