WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm looking for the add_action() hook for when a current post is edited and saved. I know there's edit_post and save_post, but I'm looking for something that ONLY fires when a current post is edited, not created or altered in any other way.

share|improve this question
up vote 1 down vote accepted

Not a real answer.

Take a look the files that use save_post and edit_post
It will lead you to the hook post_updated

Take a look and see if you can find a hook you need. Keep in mind that you might need to do some checks in the hook.
You'll figure it out.

share|improve this answer
Yeah, I have an idea of how I could do it. Thanks, I'll just except this as the answer. – iRector Sep 25 '12 at 16:03

The codex doesn't really give much information but it does look like edit_post is the hook to use.

edit_post Runs when a post or page is updated/edited, including when a comment is added or updated (which causes the comment count for the post to update). Action function arguments: post or page ID.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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