Title: Wrong hook in your Plugin
Last modified: July 9, 2024

---

# Wrong hook in your Plugin

 *  Resolved [danielvonmitschke](https://wordpress.org/support/users/danielvonmitschke/)
 * (@danielvonmitschke)
 * [1 year, 11 months ago](https://wordpress.org/support/topic/wrong-hook-in-your-plugin/)
 * In Bootstrap.php in Version 2.2.12 on line 14 you use the “plugin_loaded” hook
   to init the plugin.
 * But actually it must be “plugins_loaded” (plural).
 * At least for me it only works with “plugins_loaded”.

Viewing 1 replies (of 1 total)

 *  Plugin Author [digamberpradhan](https://wordpress.org/support/users/digamberpradhan/)
 * (@digamberpradhan)
 * [1 year, 11 months ago](https://wordpress.org/support/topic/wrong-hook-in-your-plugin/#post-17878392)
 * Hi [@danielvonmitschke](https://wordpress.org/support/users/danielvonmitschke/)
   
   I have corrected the hook and updated it to use plugins_loaded instead of plugin_loaded.
   Thank you for pointing this out – please update to version 2.2.13 when you get
   the chance.

Viewing 1 replies (of 1 total)

The topic ‘Wrong hook in your Plugin’ is closed to new replies.

 * ![](https://ps.w.org/woo-preview-emails/assets/icon-256x256.png?rev=3019089)
 * [Preview E-mails for WooCommerce](https://wordpress.org/plugins/woo-preview-emails/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/woo-preview-emails/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/woo-preview-emails/)
 * [Active Topics](https://wordpress.org/support/plugin/woo-preview-emails/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/woo-preview-emails/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/woo-preview-emails/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [digamberpradhan](https://wordpress.org/support/users/digamberpradhan/)
 * Last activity: [1 year, 11 months ago](https://wordpress.org/support/topic/wrong-hook-in-your-plugin/#post-17878392)
 * Status: resolved