Home › Forums › ACF PRO › Frontend User Registration Form › Reply To: Frontend User Registration Form
ACF can add fields to the user registration form, but as far as I know acf_form cannot be used to replace the user registration form, or at least I have not seen it done.
But it should be possible using the idea here https://www.advancedcustomfields.com/resources/using-acf_form-to-create-a-new-post/ and using a custom acf/pre_save_post filter https://www.advancedcustomfields.com/resources/acf-pre_save_post/
The main differences
1) You would use something like ‘new_user’ as the post id in acf_form() and test for this value in the acf/pre_save_post filter
2) Instead of creating a new post, you would create a new user, however that is done in WP… I don’t know, I’ve never done it.
3) The post ID that you return from the acf/pre_save_post filter should be "user_{$user->ID}"
. This will tell acf to save the field values to the user instead of a post. https://www.advancedcustomfields.com/resources/how-to-get-values-from-a-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.