Use woocommerce_email hook over woocommerce_init to load templates
-
Hi there,
seems like the plugin (mailpoet/lib/WooCommerce/TransactionalEmailHooks.php, 35) is using the
woocommerce_init
hook to register it’s email related hooks and then immediately callsWC()->mailer()
which will load all the email classes etc. Please use thewoocommerce_email
hook instead to register your email related hooks. The email classes must not be loaded on every pageload.Cheers
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Use woocommerce_email hook over woocommerce_init to load templates’ is closed to new replies.