Title: Wrong hook
Last modified: September 4, 2016

---

# Wrong hook

 *  Resolved [benjaminniess](https://wordpress.org/support/users/benjaminniess/)
 * (@benjaminniess)
 * [9 years, 9 months ago](https://wordpress.org/support/topic/wrong-hook/)
 * Hi,
 * You’re using the “init” hook to start your plugin but many developers are using
   this hook to send emails so some of them will not be logged (depending on the
   priority and alphabetic order).
 * You should use the “plugins_loaded” hook instead which is called before the init
   hook and is the hook that we use to use to call the main class of a plugin.

Viewing 1 replies (of 1 total)

 *  [Sudar Muthu](https://wordpress.org/support/users/sudar/)
 * (@sudar)
 * [9 years, 9 months ago](https://wordpress.org/support/topic/wrong-hook/#post-8164647)
 * Thanks for pointing it out.
 * I have made this change in the current development version which will be released
   in a couple of weeks.

Viewing 1 replies (of 1 total)

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

 * ![](https://ps.w.org/email-log/assets/icon-256x256.png?rev=1710920)
 * [Email Log](https://wordpress.org/plugins/email-log/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/email-log/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/email-log/)
 * [Active Topics](https://wordpress.org/support/plugin/email-log/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/email-log/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/email-log/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [Sudar Muthu](https://wordpress.org/support/users/sudar/)
 * Last activity: [9 years, 9 months ago](https://wordpress.org/support/topic/wrong-hook/#post-8164647)
 * Status: resolved