WordPress.org

Ready to get started?Download WordPress

Forums

Editing custom post type triggers which hook? (2 posts)

  1. Mikko Saari
    Member
    Posted 4 years ago #

    If I edit a post, it'll trigger 'edit_post'. If I edit a page, it'll trigger 'edit_page'. But if I edit a custom post type, what it triggers? Neither of those, it seems, as I've been experimenting with my Relevanssi plugin and editing a custom type post didn't do anything it should've done.

    So, is there a hook I could add an action to that triggers when something in a custom post type is edited?

  2. Mikko Saari
    Member
    Posted 4 years ago #

    'save_post' is the correct answer here.

Topic Closed

This topic has been closed to new replies.

About this Topic