• Resolved Bas Schuiling

    (@basszje)


    I’ve been using this plugin for a while and it has been great. I have one problem though with Easy Digital Downloads. It seems that emails sent by that plugin aren’t been logged with Email Log, however the emails *do* sent.

    After some research I found out that email log is activating itself on the ‘init’ hook, which is later than for instance ‘plugins_loaded’.

    This probably means ( it does, I tested it ) that EDD, amongst others probably, will already do actions before the init action has been running.

    Is this for a reason so? It looks like you could reliably intercept more cases with moving to the plugins_loaded hook.

    ( In the case of EDD it’s also hooking it’s actions which send email to the ‘init’ hook, so another alternative would be to hook into init but as earliest as possible. This is perhaps why it sometimes seems to work. )

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Sudar Muthu

    (@sudar)

    Hello Bas,

    Thanks for reporting this.

    Your are absolutely correct. I am not sure why I used the init hook instead of plugins_loaded.

    I am currently working on v2.0 which is mostly a rewrite. I have already fixed it and will try to get it release soon.

    Thread Starter Bas Schuiling

    (@basszje)

    Hi Sudar,

    Super! Thanks for all the work.

    Plugin Author Sudar Muthu

    (@sudar)

    I have released v2.0.0 of the plugin with the above fix.

    Kindly update the plugin and let me know if you still face the issue.

    Thread Starter Bas Schuiling

    (@basszje)

    Thanks for the note. I’ve been running it for a few days and everything seems to work great. Thanks!

    Plugin Author Sudar Muthu

    (@sudar)

    Thanks for confirming that everything works.

    Have a nice day!

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Log hooking too late?’ is closed to new replies.