Skip to content
Advertisement

Tag: add-action

wp_after_insert_post not triggering

I am trying to send an email after a new post has been created. It needs to be sent after the creation of the post, because I want to include the post category in the email. wp_after_insert_post does not seem to work, as no email is sent. I have tried using the same code with the publish_post hook instead, which

Advertisement