Home › Forums › General Issues › Programmatically clear field values for all posts? › Reply To: Programmatically clear field values for all posts?
Thanks for your reply, @hube2 – I ended up using the init
hook as indicated in your example, and I also made use of the add_option()
/ get_option()
functions to force the utility function to run only once, as described in this post. For any others who may stumble across this thread and need to do something similar (e.g. utility function to update the content of a field for all posts), this approach worked well for me.
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.