Home › Forums › Backend Issues (wp-admin) › Setting correct priority on publish_post action › Reply To: Setting correct priority on publish_post action
Hi
I am running into this exact issue. I tried the above suggestions but it seems that the email plugin does not hook into ‘acf/save_post’.
This is what I have:
add_action( 'acf/save_post','process_subscriptions', 20);
and
public function process_subscriptions($post_id) {
$settings = incsub_sbe_get_settings();
// If this is just a revision, don't send the email.
if ( wp_is_post_revision( $post_id ) )
return;
if(in_array(get_post_type($post_id), $settings['post_types']))
$this->send_mails( array( $post_id ) );
}
Nothing happens, even if I put a exit code in the function, the WP still just goes through without ever calling this function.
Any ideas? Again this is inside a plugin.
Thanks
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.