Home › Forums › Bug Reports › "update_field" not working if called inside "acf/update_value" filter › Reply To: "update_field" not working if called inside "acf/update_value" filter
acf/update_value happens as each field is updated. Fields are updated in the order they are submitted, which is the same order that they appear in the HTML. If you attempt to update a field that is processed after the field you add the filter to then ACF will update that field with the submitted value overwriting what you updated the field to.
In this case you would be better off using an acf/save_post filter with a priority > 10 and do your updated then.
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.