0

I'm looking for a list of action tags that are relevant when you:

  • create a post, with any method, so basically using wp_insert_post
  • modify a post, like changing status, title, content, terms, meta, anything related to it;
  • remove a post

Are save_post and deleted_post enough for this kind of thing?

1

Yes, 'save_post' and 'delete_post' cover everything, except modifying meta and terms associated to a post. Those hooks can be found in wp-includes: meta.php and taxonomy.php, respectively.

2
  • so the other ones would be: added_post_meta, updated_post_meta, deleted_post_meta and added_term_relationship, deleted_term_relationships ? Jul 30 '11 at 13:39
  • @One Trick Pony: Yep.
    – scribu
    Jul 30 '11 at 14:30

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.