Log hooking too late?
-
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. )
- The topic ‘Log hooking too late?’ is closed to new replies.