Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Email notification callback, hooks after publishing a post
function email_notification_response_cb( $post_id, $post ) {
if ( did_action( 'publish_post' ) === 1 ) {
set_notification_status( $post_id, $post );
}
}
add_action( 'publish_post', 'email_notification_response_cb', 20, 2 );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment