mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-06 10:55:00 +08:00
Add filter to hide PayPal email address on order detail page.
This commit is contained in:
parent
d60df35f16
commit
4877172017
1 changed files with 4 additions and 0 deletions
|
@ -459,6 +459,10 @@ class WCGatewayModule implements ModuleInterface {
|
||||||
function ( $fields ) {
|
function ( $fields ) {
|
||||||
global $theorder;
|
global $theorder;
|
||||||
|
|
||||||
|
if ( ! apply_filters( 'woocommerce_paypal_payments_order_details_show_paypal_email', true ) ) {
|
||||||
|
return $fields;
|
||||||
|
}
|
||||||
|
|
||||||
if ( ! is_array( $fields ) ) {
|
if ( ! is_array( $fields ) ) {
|
||||||
return $fields;
|
return $fields;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue