mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-06 09:08:09 +08:00
Do not block emails for on hold status
This commit is contained in:
parent
2967b63fdf
commit
e62f195b0f
1 changed files with 0 additions and 12 deletions
|
@ -132,18 +132,6 @@ class WCGatewayModule implements ModuleInterface {
|
||||||
$endpoint->handle_request();
|
$endpoint->handle_request();
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
|
||||||
add_filter(
|
|
||||||
'woocommerce_email_recipient_customer_on_hold_order',
|
|
||||||
function( $recipient, $order ) {
|
|
||||||
if ( $order->get_payment_method() === PayPalGateway::ID || $order->get_payment_method() === CreditCardGateway::ID ) {
|
|
||||||
$recipient = '';
|
|
||||||
}
|
|
||||||
return $recipient;
|
|
||||||
},
|
|
||||||
10,
|
|
||||||
2
|
|
||||||
);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue