Home › Forums › Backend Issues (wp-admin) › [Login WP] Connect single field to an external api › Reply To: [Login WP] Connect single field to an external api
I apologize but I only now have a way to post my solution, maybe it can be useful to someone.
In the meantime, thank you John for the support.
Here is my solution to the problem:
$new_user_id = wp_insert_user($userdata);
$value = json_decode($response['body'], true)['Id'];
// get value from response you want to set
update_field('field_60084ad3970a8', $value0, 'user_'.$new_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.