Home › Forums › General Issues › add_action – acf/save_post + publish_post › Reply To: add_action – acf/save_post + publish_post
I would probably use the ACF hook and check the status of the post in the filter
if (get_post_status($post_id) == 'publish') {
// send email
}
@beee’s solution would work as well, but for most people it’s easier to be able to use the acf functions than it is to deal with $_POST
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.