{"id":2732114,"date":"2012-05-07T01:47:16","date_gmt":"2012-05-07T01:47:16","guid":{"rendered":"https:\/\/wordpress.org\/support\/topic\/retrieve-admin-username-without-phpmyadmin-or-database-access\/"},"modified":"2016-08-20T12:07:30","modified_gmt":"2016-08-20T12:07:30","slug":"retrieve-admin-username-without-phpmyadmin-or-database-access","status":"closed","type":"topic","link":"https:\/\/wordpress.org\/support\/topic\/retrieve-admin-username-without-phpmyadmin-or-database-access\/","title":{"rendered":"retrieve admin username without phpmyadmin or database access?"},"content":{"rendered":"<p>Hi,<\/p>\n<p>I&#8217;m trying to retrieve information for a user who has forgotten their admin password, username, and apparently the email doesn&#8217;t work either for the forgot password link.<\/p>\n<p>I think they used something besides the default &#8220;admin&#8221; for the username.<\/p>\n<p>I put this code in the functions.php to reset the password as suggested in the codex<br \/>\n<code>wp_set_password(&#039;temppassword&#039;,1);<\/code><\/p>\n<p>But I can&#8217;t tell if it&#8217;s working because it doesn&#8217;t work with &#8220;admin&#8221; so I&#8217;m guessing there is no &#8220;admin&#8221; user.<\/p>\n<p>Is there something similar to the function above to reset the administrator user name?<\/p>\n<p>Thanks<\/p>\n","protected":false},"template":"","class_list":["post-2732114","topic","type-topic","status-closed","hentry"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/2732114","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic"}],"about":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/types\/topic"}],"version-history":[{"count":0,"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/2732114\/revisions"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=2732114"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}