mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-06 18:16:38 +08:00
just return true when is the old settings
This commit is contained in:
parent
ca870ecf6f
commit
c38338f05d
1 changed files with 6 additions and 0 deletions
|
@ -105,6 +105,12 @@ class PaymentSettings extends AbstractDataModel {
|
||||||
return $this->get_paylater_enabled();
|
return $this->get_paylater_enabled();
|
||||||
|
|
||||||
default:
|
default:
|
||||||
|
if (
|
||||||
|
! did_filter( 'woocommerce_payment_gateways' )
|
||||||
|
|| doing_filter( 'woocommerce_payment_gateways' )
|
||||||
|
) {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
$gateway = $this->get_gateway( $method_id );
|
$gateway = $this->get_gateway( $method_id );
|
||||||
|
|
||||||
if ( $gateway ) {
|
if ( $gateway ) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue