Email instructions comes out multiple times
-
In the email sent to the customer as an order confirmation, the email instructions came out four times in a row.
I tracked this down to the fact that the function
hooks_and_filters()
was called four times. Once because theWC_QP
instance calls it, and three more times because each instance class (WC_QuickPay_MobilePay
etc) calls it again in their setup() method.I’ve fixed this locally in my copy by adding the following code at the start of the hooks_and_filters() function, but it would be great if a fix could make it into the plugin so I don’t have to add it again after an upgrade.
if (has_action('init', 'WC_QuickPay_Helper::load_i18n')) {
return;
}
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Email instructions comes out multiple times’ is closed to new replies.