Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

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

2 Answers 2

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

 
discard

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.