Ensure gateways get loaded prior to emailing out Closes #4577

This commit is contained in:
Mike Jolley 2014-01-28 12:36:20 +00:00
parent 663bf25d79
commit 6f3e8c182e
1 changed files with 5 additions and 0 deletions

View File

@ -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 );