Ensure gateways get loaded prior to emailing out Closes #4577
This commit is contained in:
parent
663bf25d79
commit
6f3e8c182e
|
@ -93,6 +93,11 @@ class WC_Meta_Box_Order_Actions {
|
|||
|
||||
do_action( 'woocommerce_before_resend_order_emails', $order );
|
||||
|
||||
// Ensure gateways are loaded in case they need to insert data into the emails
|
||||
WC()->payment_gateways();
|
||||
WC()->shipping();
|
||||
|
||||
// Load mailer
|
||||
$mailer = WC()->mailer();
|
||||
|
||||
$email_to_send = str_replace( 'send_email_', '', $action );
|
||||
|
|
Loading…
Reference in New Issue