diff --git a/src/InstagramData.php b/src/InstagramData.php index 23d9a75..a490b51 100644 --- a/src/InstagramData.php +++ b/src/InstagramData.php @@ -17,6 +17,10 @@ public static function access_token() { return false; } + if ( is_null( get_option( 'simsf_token' )['access_token'] ) ) { + return false; + } + if ( false === get_option( 'simsf_token' )['access_token'] ) { return false; }