From f83449090b0d17b15ee9ddf74855299bca12a7d7 Mon Sep 17 00:00:00 2001 From: Narek Zakarian Date: Wed, 5 Mar 2025 18:59:41 +0400 Subject: [PATCH] Allow to filter the disabled funding sources --- modules/ppcp-button/src/Helper/DisabledFundingSources.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/ppcp-button/src/Helper/DisabledFundingSources.php b/modules/ppcp-button/src/Helper/DisabledFundingSources.php index 203208b47..1f5c87afc 100644 --- a/modules/ppcp-button/src/Helper/DisabledFundingSources.php +++ b/modules/ppcp-button/src/Helper/DisabledFundingSources.php @@ -104,6 +104,6 @@ class DisabledFundingSources { $disable_funding = $all_sources; } - return $disable_funding; + return apply_filters( 'woocommerce_paypal_payments_disabled_funding_sources', $disable_funding ); } }