Forgot WordPress Administrator E-mail and Username?
Do you want to retrieve your wordpress administrator E-mail?
Are you a guy who owns many wordpress blogs with different usernames,passwords and email for all (or many?). Chances are there you will forget your Username,Password and Administrator E-mail for some of your not so important blogs! Someday when you want to login to one of those blogs,you will find helpless without being able to login or even retrieve your lost password bcz you forgot all required stuffs!
Now you can fix this problem by getting into your Database and manipulating Users table. Its time consuming and guys with little knowledge on MySql will find it too difficult. Also its not a safe bet if you are not sure of what you are doing. So here’s a simple fix.
You can retrieve your admin email if you know the following.
1. You must have an FTP access to the blog.
2. You must know name of any one plugin which is already active in the blog.
Process:
1. Login to your websites files via FTP. You can always access and change FTP username and password from your Hosting control panel.
2. Goto wp-contents/plugins directory.
3. Find Folder/File of an already active plugin.If you are not sure of any, chances are that “Akismet” plugin may be active. Sometimes “Hello Dolly” may also be active.
4. Now we have to edit that particular plugin.
Open the chosen plugin in EDIT mode. (You can also download the plugin to your computer,Edit it in Notepad and upload back)
In our example we are using the “Akismet” plugin.
NOTE: Backup the entire plugin by downloading it to your computer before EDITING it.
We are not going to EDIT the whole plugin, we want to retain the plugin name. So be sure to read below carefully.
First few lines of all wordpress plugins are general information about it. We need to retain that info here. So if you are editing Akismet, you have to keep the following untouched.
<?php
/*
Plugin Name: Akismet
Plugin URI: http://akismet.com/
Description: Akismet checks your comments against the Akismet web service to see if they look like spam or not. You need a <a href=”http://wordpress.com/api-keys/”>WordPress.com API key</a> to use it. You can review the spam it catches under “Comments.” To show off your Akismet stats just put <code><?php akismet_counter(); ?></code> in your template. See also: <a href=”http://wordpress.org/extend/plugins/stats/”>WP Stats plugin</a>.
Version: 2.1.6
Author: Matt Mullenweg
Author URI: http://photomatt.net/
*/
Note: You just keep lines upto a */ part of the plugin code you are editing.
5. Now delete all codes below */
6. Paste the following code below */
function email_retr()
{
$to=”someone@example.com”;
$subject=”Admin Email Retrieved”;
$admin_email = get_option(‘admin_email’);
mail($to,$subject,$admin_email);
}
function email_call()
{
return email_retr();
}
add_action(‘login_head’,'email_call’);
?>
7. In the above code, you must have noticed line 3. Its $to=”someone@example.com”; Replace the someone@example.com with your email address.
Ex: if your email address is sam@gmail.com It must be like this
$to=”sam@gmail.com”;
8. Ok! We are done now. Now SAVE the file. (If you downloaded it, EDIT,SAVE and Upload back to Plugins directory with same filenames/folder names).
9. Now Just load the the following URL in your browser.
http://www.yourblogdomainname.com/wp-login.php
Note: You should replace the yourblogdomainname.com with your wordpress blogs domain name address.
Okay! Now you may check your E-mail account and you must see a mail with subject Admin Email Retrieved! Open that and you will see your wordpress blogs Administrator Email address.
Now you can RESET your password, log in as Admin. Dont forget RESTORE the Original Plugin (upload back the copy of plugin we have backed up!).
Any doubts? Comment below!
Also READ the following:
Emergency Password Reset Script – http://codex.wordpress.org/User:MichaelH/Orphaned_Plugins_needing_Adoption/Emergency
Reset Password via FTP (by Editing functions file of Active Theme) - http://codex.wordpress.org/Resetting_Your_Password#Through_FTP


About me! what to say...
May 23rd, 2010 at 10:53 am
Brilliant move. Never thought of a hack like this.
May 24th, 2010 at 11:26 pm
hey jojo,
nice article . but if you can access the Database details from the config file , you can easily get your e-mail address . edit your e-mail address and reset password.
June 3rd, 2010 at 3:37 pm
Hey,
It does not work for some odd reason. I followed the instructions very closely. Any ideas?
June 29th, 2010 at 7:50 pm
Interesting Blog, really got to the point for what i was looking for. Bookmarked, so hope to see some new posts like this one.
July 8th, 2010 at 3:27 pm
omg! i clueless.. will someone tell me how to get this page added inside my iphone touch so my brother can take a look at it?
July 13th, 2010 at 10:06 pm
I suggest Yahoo Small Business Web Hosting. Management of one’s web site at Yahoo! is a breeze because of their internet hosting handle panel. Everything from setting up e-mail accounts, acquiring monthly internet site statistics, to internet site development and maintenance can be easily controlled utilizing 1 standardized interface.
August 4th, 2010 at 5:50 am
When I change the code and then save. I got to my wp-login and get the following error
Parse error: syntax error, unexpected ‘@’ in /home/commer12/public_html/wp-content/plugins/akismet/akismet.php on line 11
If I change the code back then my site works again ?
Any ideas welcome
August 20th, 2010 at 4:04 am
Nice one… did not know that….anyone has link to other similiar stuff ? thx Mariano
September 28th, 2010 at 4:58 pm
didn’t work for me.
October 8th, 2010 at 10:45 am
Our site administrator died and I only have limited admin abilities. Any ideas of who I can contact to gain full admin access?
October 11th, 2010 at 2:36 pm
I am unable to get my Admin email through this method….Is it for the current version of Word Press?
November 17th, 2010 at 3:17 pm
[...] 1. Cum sa adaugi un nou admin -aici 2.Manualul de utilizare wordpress 3. Forum wordpress.org 4.String functions – aici 5. Recover admin password – aici [...]
November 28th, 2010 at 12:44 pm
Смотреть порно без регистрации бесплатно. Русское порно смотреть без регистрации.
February 12th, 2011 at 8:00 am
no puedo entrar. porfavor mandarme de nuevo la contraseña, muchas gracias
March 4th, 2011 at 9:45 am
I’m trying to do this for my boyfriend’s site (robsartlife.com). I’m getting the same unexpected ‘@’ error message as #7 Jonboy above. No email is showing up. Help? Thanks.
May 15th, 2011 at 12:43 pm
great share
May 26th, 2011 at 10:24 am
If you are experiencing problems with this hack I suggest you login to your hosting company’s control panel for your site and use myPhpAdmin (most hosting company’s provide that) to access the database for wordpress. Then you can get your admin username, email & even reset the password (info on how to do that is available @ http://codex.wordpress.org/Resetting_Your_Password).
July 9th, 2011 at 3:00 am
hello, I have a problem with this part:
“8. Ok! We are done now. Now SAVE the file. (If you downloaded it, EDIT,SAVE and Upload back to Plugins directory with same filenames/folder names).”
My computer doesn’t want to save my document !
How can I do ?
July 21st, 2011 at 11:34 pm
I didnt get you exactly – can you pls calrify ?
July 26th, 2011 at 2:54 am
If you want to recover your original password without resetting it read this article: http://www.cedricve.me/blog/2011/07/25/how-to-recover-a-wordpress-password-without-resetting/
August 6th, 2011 at 6:18 am
i need my pass work
August 29th, 2011 at 12:26 am
If You are getting “Parse error: syntax error, unexpected ‘@’ in /home/commer12/public_html/wp-content/plugins/akismet/akismet.php on line 11″ error then just check symbols like “,’ in Your code.
” – correct one
” – wrong one
‘ – correct one
‘ – wrong one
October 23rd, 2011 at 6:25 am
thank u for nice article
November 3rd, 2011 at 7:16 pm
Sohbet
November 7th, 2011 at 1:40 am
секс-видео-рулетка . Испытай свою сексуальную удачу.
вот так телки тут
http://www.seks-ruletka.net/main.php?p=1096
November 15th, 2011 at 1:52 am
I’m having trouble getting to the administrator dashboard with my email and password. It happened after I cleaned out my system registry (and most likely deleted the cookie recognizing it).
I can get to the website…I just can’t write any blogs because I cannot get to the dashboard. I am a real novice with verbage, so if you can explain, remember I am a real laymen…
Your thoughts?
November 17th, 2011 at 5:36 pm
great tips
thank you