Home › Forums › General Issues › Saving fields to user registration form › Reply To: Saving fields to user registration form
The hook user_register should run just the same as when you’re registering a user not through AJAX..
https://codex.wordpress.org/Function_Reference/wp_insert_user#Notes
However the function wp_insert_user will return the new user id if successful so you should be able to do this right after:
update_user_meta($user_register, 'number_of_bedrooms', $_POST['fields']['field_55e56dfdabccb']);
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.