just return true when is the old settings

This commit is contained in:
Narek Zakarian 2025-02-28 15:50:31 +04:00
parent ca870ecf6f
commit c38338f05d
No known key found for this signature in database
GPG key ID: 07AFD7E7A9C164A7

View file

@ -105,6 +105,12 @@ class PaymentSettings extends AbstractDataModel {
return $this->get_paylater_enabled();
default:
if (
! did_filter( 'woocommerce_payment_gateways' )
|| doing_filter( 'woocommerce_payment_gateways' )
) {
return true;
}
$gateway = $this->get_gateway( $method_id );
if ( $gateway ) {