mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-04 08:47:23 +08:00
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:
commit
252a7d154f
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