Home › Forums › General Issues › Update_field not working for front end user creation › Reply To: Update_field not working for front end user creation
@hube2 yes correct and it works for creating a user. But when I try to make a change to a user this function runs and causes an error because the user id already exists. So I suspect it is outputting something other than just user Id which is causing the above string error.
Basically updating the custom post type users results in the error due to line
update_field('field_602ce62b11720', $incident, 'user_'.$user_id)
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.