Title: Which hooks does this plugin attach to?
Last modified: February 7, 2022

---

# Which hooks does this plugin attach to?

 *  Resolved [Jaakko Pöntinen](https://wordpress.org/support/users/jpontinen/)
 * (@jpontinen)
 * [4 years, 4 months ago](https://wordpress.org/support/topic/which-hooks-does-this-plugin-attach-to/)
 * Hello.
 * What are the actions in WordPress core that trigger your plugin’s image manipulation
   process?
 * Thanks 🙂
 * – JP

Viewing 3 replies - 1 through 3 (of 3 total)

 *  Plugin Author [Nabil Lemsieh](https://wordpress.org/support/users/nlemsieh/)
 * (@nlemsieh)
 * [4 years, 4 months ago](https://wordpress.org/support/topic/which-hooks-does-this-plugin-attach-to/#post-15337385)
 * Hi [@jpontinen](https://wordpress.org/support/users/jpontinen/)
 * The plugin is attached to this action [wp_generate_attachment_metadata](http://developer.wordpress.org/reference/hooks/wp_generate_attachment_metadata/).
 * It’s also attached to [save_post](https://developer.wordpress.org/reference/hooks/save_post/)
   when an image is added or attached to a product. Images that cannot be recognized
   upon upload are processed later in the background after they get attached.
 * Let me know if you have any other questions.
 * Best
    Nabil
    -  This reply was modified 4 years, 4 months ago by [Nabil Lemsieh](https://wordpress.org/support/users/nlemsieh/).
 *  Thread Starter [Jaakko Pöntinen](https://wordpress.org/support/users/jpontinen/)
 * (@jpontinen)
 * [4 years, 4 months ago](https://wordpress.org/support/topic/which-hooks-does-this-plugin-attach-to/#post-15341826)
 * Thank you, Nabil 🙂
 * FYI, I need your plugin to work with BjornTech’s Zettle integration. The images
   the plugin uploads in the import process are not being handled by your plugin.
   Their dev is checking whether their import process triggers the action you described.
 *  Plugin Author [Nabil Lemsieh](https://wordpress.org/support/users/nlemsieh/)
 * (@nlemsieh)
 * [4 years, 4 months ago](https://wordpress.org/support/topic/which-hooks-does-this-plugin-attach-to/#post-15342633)
 * [@jpontinen](https://wordpress.org/support/users/jpontinen/)
 * If the product images are not getting handled upon import, that’s likely because
   the plugin cannot determine whether the imported image is a product-image. In
   this case, the plugin will recheck the image when it’s attached to the product
   later and process it in the background, a notice will show up in the admin when
   it’s running.
 * Alternatively, if you have control over the API, you can pass this variable `
   _processable_image=1` to the import query to force the plugin to handle the image.

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Which hooks does this plugin attach to?’ is closed to new replies.

 * ![](https://ps.w.org/smart-image-resize/assets/icon-256x256.jpg?rev=2142235)
 * [Smart Image Resize - Make WooCommerce Images the Same Size](https://wordpress.org/plugins/smart-image-resize/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/smart-image-resize/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/smart-image-resize/)
 * [Active Topics](https://wordpress.org/support/plugin/smart-image-resize/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/smart-image-resize/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/smart-image-resize/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [Nabil Lemsieh](https://wordpress.org/support/users/nlemsieh/)
 * Last activity: [4 years, 4 months ago](https://wordpress.org/support/topic/which-hooks-does-this-plugin-attach-to/#post-15342633)
 * Status: resolved