mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-04 08:47:23 +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 ) {
|
||||
global $theorder;
|
||||
|
||||
if ( ! apply_filters( 'woocommerce_paypal_payments_order_details_show_paypal_email', true ) ) {
|
||||
return $fields;
|
||||
}
|
||||
|
||||
if ( ! is_array( $fields ) ) {
|
||||
return $fields;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue