Home › Forums › General Issues › update_field on Publish › Reply To: update_field on Publish
Does acf/save_post runs when posts are pending?
if it doesn’t you could check if your field_534dc7420db07
has a value and update it with $value only if it doesn’t. if acf/save_post runs before the values are stored in the database an “updated” post will already have a value for that field and wont get updated.
would that work?
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.