• Resolved vendidero

    (@vendidero)


    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 calls WC()->mailer() which will load all the email classes etc. Please use the woocommerce_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)
  • Plugin Author MailPoet

    (@mailpoet)

    Hello @vendidero,

    Thank you for your tip. It looks like a great idea.
    We will try to change this code, and when the testing is successful, this change will be released soon.

Viewing 1 replies (of 1 total)
  • The topic ‘Use woocommerce_email hook over woocommerce_init to load templates’ is closed to new replies.