Fix fatal error when sending order mail
This commit is contained in:
parent
27f844b274
commit
6902aa852c
|
@ -93,7 +93,7 @@ class WC_Meta_Box_Order_Actions {
|
|||
|
||||
do_action( 'woocommerce_before_resend_order_emails', $order );
|
||||
|
||||
$mailer = $woocommerce->mailer();
|
||||
$mailer = WC()->mailer();
|
||||
|
||||
$email_to_send = str_replace( 'send_email_', '', $action );
|
||||
|
||||
|
|
Loading…
Reference in New Issue