WordPress.org

Ready to get started?Download WordPress

Forums

Hook when new CPT published AND postmeta inserted (1 post)

  1. drtanz
    Member
    Posted 1 year ago #

    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.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.