Home › Forums › General Issues › Set meta value for all users › Reply To: Set meta value for all users
Hi @youngwolf0
A very good question. To which I don’t have an easy solution.
I would write a custom function (and run it once, then delete it) that loops through all your users (via a WP_User query), and for each user, use the update_field function (documented on this site) to save a value of 1
for the field.
I hope this makes sense.
Thanks
E
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.