Merge pull request #412 from woocommerce/pcp-465-remove-onhold-filter

Do not block emails for on hold status
This commit is contained in:
Emili Castells 2021-12-17 14:16:54 +01:00 committed by GitHub
commit 29635d9fb0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -132,18 +132,6 @@ class WCGatewayModule implements ModuleInterface {
$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
);
}
/**