Add filter to hide PayPal email address on order detail page.

This commit is contained in:
Pedro Silva 2024-04-03 11:57:14 +01:00
parent d60df35f16
commit 4877172017
No known key found for this signature in database
GPG key ID: E2EE20C0669D24B3

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;
}