Forgot WordPress Administrator E-mail and Username?

Do you want to retrieve your wordpress administrator E-mail?

wordpress-hacks

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>&lt;?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 Jojo

About me! what to say...
This entry was posted in Plugins, Wordpress and tagged . Bookmark the permalink.

29 Responses to Forgot WordPress Administrator E-mail and Username?

  1. Alex Jose says:

    Brilliant move. Never thought of a hack like this.

  2. lijo says:

    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.

  3. sdhelper says:

    Hey,

    It does not work for some odd reason. I followed the instructions very closely. Any ideas?

  4. Carlena Pyle says:

    Interesting Blog, really got to the point for what i was looking for. Bookmarked, so hope to see some new posts like this one.

  5. 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?

  6. Tamala Macentee says:

    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.

  7. Jonboy says:

    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 :)

  8. mariano says:

    Nice one… did not know that….anyone has link to other similiar stuff ? thx Mariano

  9. Mayank says:

    didn’t work for me.

  10. Rebecca says:

    Our site administrator died and I only have limited admin abilities. Any ideas of who I can contact to gain full admin access?

  11. Teena says:

    I am unable to get my Admin email through this method….Is it for the current version of Word Press?

  12. Pingback: Tutoriale utile

  13. Inveneatona says:

    Смотреть порно без регистрации бесплатно. Русское порно смотреть без регистрации.

  14. andaluza23 says:

    no puedo entrar. porfavor mandarme de nuevo la contraseña, muchas gracias

  15. Riin says:

    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.

  16. Demelo says:

    great share

  17. Mike says:

    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).

  18. yogi says:

    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 ?

  19. Jojo says:

    I didnt get you exactly – can you pls calrify ?

  20. Mathias says:

    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/

  21. i need my pass work

  22. Kikass says:

    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

    ;)

  23. thank u for nice article

  24. seks says:

    секс-видео-рулетка . Испытай свою сексуальную удачу.

    вот так телки тут
    http://www.seks-ruletka.net/main.php?p=1096

  25. 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?

  26. Larry says:

    I can’t retieve a new password for my site,,no matter what I do,,thanks

  27. Larry says:

    RETRIEVE?

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>