Merge pull request #2137 from woocommerce/PCP-2925-filter-to-hide-pay-pal-email-address-not-working-on-order-detail

Filter to hide PayPal email address not working on order detail (2925)
This commit is contained in:
Emili Castells 2024-04-04 09:17:29 +02:00 committed by GitHub
commit 252a7d154f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -459,6 +459,10 @@ class WCGatewayModule implements ModuleInterface {
function ( $fields ) {
global $theorder;
if ( ! apply_filters( 'woocommerce_paypal_payments_order_details_show_paypal_email', true ) ) {
return $fields;
}
if ( ! is_array( $fields ) ) {
return $fields;
}