Home › Forums › General Issues › How can I update one acf value with another on save? › Reply To: How can I update one acf value with another on save?
You had the correct filter the first time “acf/save_post” because you will be working with multiple values. The other field may or may not have been saved when the acf/update_field hook happens for this field.
You cannot update a field value simply by setting a variable equal to something, you must call update_field() to have ACF save that value to the DB.
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.