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 can't find a specific hook. If I already have added an image to an article via editor and then I edit it, I'd like to intercept the code just before it is sent again to the editor.

I already use 'image_send_to_editor' but it works on the first image insertion, not if the image gets edited.

Can you help me please?

share|improve this question

1 Answer 1

edit_attachment Runs when an attached file is edited/updated to the database. Action function arguments: attachment ID

This is found deocumented in the Codex under the Action Reference. Please take a closer look at the Codex before posting questions related directly to syntax. :)

share|improve this answer
Well, it doesn't work at all. –  Stratboy Aug 31 '12 at 16:50
Great description. –  Eric Holmes Aug 31 '12 at 17:07

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.