diff --git a/wp-graphql-jwt-authentication.php b/wp-graphql-jwt-authentication.php index c5ad5ce..5134db4 100644 --- a/wp-graphql-jwt-authentication.php +++ b/wp-graphql-jwt-authentication.php @@ -148,7 +148,10 @@ private function setup_constants() { private function includes() { // Autoload Required Classes. if ( defined( 'WPGRAPHQL_JWT_AUTHENTICATION_AUTOLOAD' ) && true === WPGRAPHQL_JWT_AUTHENTICATION_AUTOLOAD ) { - require_once( WPGRAPHQL_JWT_AUTHENTICATION_PLUGIN_DIR . 'vendor/autoload.php' ); + if ( file_exists( WPGRAPHQL_JWT_AUTHENTICATION_PLUGIN_DIR . 'vendor/autoload.php' ) ) { + // Autoload Required Classes. + require_once WPGRAPHQL_JWT_AUTHENTICATION_PLUGIN_DIR . 'vendor/autoload.php'; + } } }