Skip to content

Commit

Permalink
Merge pull request #412 from woocommerce/pcp-465-remove-onhold-filter
Browse files Browse the repository at this point in the history
Do not block emails for on hold status
  • Loading branch information
Dinamiko authored Dec 17, 2021
2 parents f55de6a + e62f195 commit 29635d9
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions modules/ppcp-wc-gateway/src/WCGatewayModule.php
Original file line number Diff line number Diff line change
Expand Up @@ -132,18 +132,6 @@ static function () use ( $c ) {
$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
);
}

/**
Expand Down

0 comments on commit 29635d9

Please sign in to comment.