diff --git a/index.php b/index.php new file mode 100644 index 0000000..6220032 --- /dev/null +++ b/index.php @@ -0,0 +1,2 @@ +getUserProfile(); - $user_data = (array) $user; - return $user_data; + return (array) self::api()->getUserProfile(); } /** @@ -302,8 +300,7 @@ public static function token_expire_date() { public static function token_created_date() { if ( self::has_refresh() ) { $created_date = get_option( 'simsf_access_token' )['created_at']; - $date = date_i18n( get_option( 'date_format' ), $created_date); - return $date; + return date_i18n( get_option( 'date_format' ), $created_date); } return 'no date was found ! '; } diff --git a/uninstall.php b/uninstall.php index 2cc8aa5..517b48b 100644 --- a/uninstall.php +++ b/uninstall.php @@ -1,18 +1,4 @@