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.

Is there a filter for when a Featured Image is set/unset or changed.

I need to delete transient data when the above occurs.

share|improve this question

1 Answer 1

up vote 1 down vote accepted

The post featured image ID is stored as post metadata, so I would recommend hooking into the update_post_meta or update_post_metadata hooks, and then query the post meta for '_thumbnail_id' being set.

See this related answer from Jan Fabry.

share|improve this answer
Thanks Chip that worked perfectly. –  Colin Murphy May 10 '12 at 15:47

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.