Home › Forums › Backend Issues (wp-admin) › Get post status in acf/validate_save_post › Reply To: Get post status in acf/validate_save_post
When a post is updated acf includes $_POST[‘_acf_post_id’] and you may be able to use this to get the post status. But ACF is unaware of a post being transitioned to publish status.
When saving a post you would also need to look at the standard fields for a post that WP uses an check these to find out if a post is being published.
There are also multiple ways that a post can be published and some of them do not cause a submission of the post. For example you can publish a post from the quick edit menu.
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.