Title: No wp_insert_attachment?
Last modified: July 2, 2018

---

# No wp_insert_attachment?

 *  [parakeet](https://wordpress.org/support/users/parakeet/)
 * (@parakeet)
 * [7 years, 11 months ago](https://wordpress.org/support/topic/no-wp_insert_attachment/)
 * I’d like a webhook to fire when a photo is added to the Media library.
    As I 
   understand it, the nearest available webhook via HookPress is add_attachment,
   which only fires when an already-uploaded image is saved to a Post.
 * Anyone know a way to get something firing upon wp_insert_attachment, which is
   the relevant WordPress hook?

The topic ‘No wp_insert_attachment?’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/hookpress_d3e7f8.svg)
 * [HookPress](https://wordpress.org/plugins/hookpress/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/hookpress/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/hookpress/)
 * [Active Topics](https://wordpress.org/support/plugin/hookpress/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/hookpress/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/hookpress/reviews/)

## Tags

 * [media](https://wordpress.org/support/topic-tag/media/)

 * 0 replies
 * 1 participant
 * Last reply from: [parakeet](https://wordpress.org/support/users/parakeet/)
 * Last activity: [7 years, 11 months ago](https://wordpress.org/support/topic/no-wp_insert_attachment/)
 * Status: not resolved