Home › Forums › General Issues › Create, Define, Add,Update fields in WP User Profiles › Reply To: Create, Define, Add,Update fields in WP User Profiles
you can use update_field() to set the value. Pass an array for the values
array(
// nested array for each row
array(
// element for each field
'field_409832048038' => 'value',
'field_04230949393a' => 'value',
// etc
)
)
I show field keys because it’s better to use field keys when updating fields that may not have values yet.
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.