diff --git a/class-two-factor-core.php b/class-two-factor-core.php index 440e01f6..421d6787 100644 --- a/class-two-factor-core.php +++ b/class-two-factor-core.php @@ -241,9 +241,9 @@ private static function get_providers_classes( $providers ) { $class = apply_filters( "two_factor_provider_classname_{$provider_key}", $class, $path ); /** - * Confirm that it's been successfully included before instantiating. + * Confirm that it's been successfully included. */ - if ( method_exists( $class, 'get_instance' ) ) { + if ( class_exists( $class ) ) { $providers[ $provider_key ] = $class; } else { unset( $providers[ $provider_key ] );