Home › Forums › General Issues › How to update user field with correct object etc › Reply To: How to update user field with correct object etc
I have never used update_field() on a user field. But I have used it on other relationship type fields and have always just used the array of IDs I want to update it to……
I just looked at the code for update field. You can use wither user objects or user IDs, or even an array with user data. If you pass it an array or an object it converts it to the bare 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.