Home › Forums › Front-end Issues › Front-end posting and user registration in one form › Reply To: Front-end posting and user registration in one form
Hi @sabrinaze,
Thanks for the post.
I believe the logic to check if the email has an account should be added to your template where you are calling the acf_form() function.
You can then leave the wp_insert_post() action to the acf/pre_save_post so that the post data can be added to the database once the user passed the validation.
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.