• I have a custom post type set up so that a user in the role of contributor can create a post, but an administrator has to approve the post and publish it.

    I’d like to capture the event when the administrator publishes this post type and then send an email to all contributors that there has been a post.

    I looked at the Codex and it looks like the hook ‘publish_page’ wasn’t working after 2.3, but is after 2.6. (I’m on 3.9.1).

    It also mentions ‘transition_post_status’ as a hook. Is this the more reliable hook to use in this case?

  • The topic ‘Publish custom post type hook’ is closed to new replies.