Home › Forums › ACF PRO › Better way to update multiple fields (update_field()) › Reply To: Better way to update multiple fields (update_field())
I have often thought about building something that would bypass then entire ACF save routine by doing something similar.
The main problem that I’ve found is that there is nothing to keep ACF from running anyway. Well there is, after the update you can unset $_POST[‘acf’], but there are other time consuming problems…
… like you’d need to recreate most of the things that ACF does and deal with all the special fields involved and how each one needs to be stored, and then there’s the dealing with all of the custom field addons that exist and any special treatment you’d need to give those fields…
What’s really needed is an improved mechanism in WP core for updating meta values that does not require doing multiple queries for every value, but I don’t think that’s ever going to happen.
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.