Support » Fixing WordPress » Hook when new CPT published AND postmeta inserted

  • I would like to know if there is a hook that fires when a new CPT is published and its postmeta has been inserted.

    I was using publish_mycpt but found that the postmeta wasn’t being saved at that point. I would like my hook to run only for this custom post type, not for all posts.

    The function I will be calling via the action hook is also used by a scheduled cron job, so it’s not only called when a new post is published via the administration interface, not sure if this is important or not.

  • The topic ‘Hook when new CPT published AND postmeta inserted’ is closed to new replies.