How To Change Your Admin Username In WordPress

When WordPress is installed it sets your login name to “admin” by default. If you want to change it you will usually need to manually edit the WordPress database, which might seem a bit intimidating for people not familiar with MySQL/phpMyAdmin. That’s why I created a small plugin that will let you easily edit your username from within WordPress.

How It Works

The plugin adds a new menu item called “Change Username” to the “Users” menu on the Dashboard. Clicking it will display a form where you can enter your new login name. All you need to do is enter the desired username in the form and click “Save Changes”. The plugin will then automatically perform the required database operations and let you log in with your new username right away.

Download Plugin

change-admin-username.zip (3 KB)
I’ve tested the plugin on WP 2.6 – 2.8.3 but it should be compatible with most older versions, too – all the way down to 2.0.x. If you find any bugs feel free to leave a comment below.

Share :
  • Reddit
  • del.icio.us
  • Digg
  • StumbleUpon
  • DZone
  • Ping.fm
  • Sphinn
  • Twitter
Related posts :

82 Responses to “How To Change Your Admin Username In WordPress”

Pages: « 1 [2] 3 » Show All

  1. 23
    Abuziyad says:

    Very good, It is work good. Thanks for this plugin.

  2. 24
    gwizit says:

    Very Nice

    Was skeptical on trying it since you stated – “I’ve only tested the plugin on WP 2.6″

    So for those still looking – It Works Just Fine on WordPress Version 2.7.1

    Appreciate It White Shadow

  3. 25
    scobot says:

    THANK YOU!!!

    I stupidly just picked something DUMB as my user name thinking “oh well, my display name will be what everyone will see” – then I realized that may not work (maybe it would have) – but I got all stressed out about having to delete my new blog and start all over again! A quick google search for help and I found your post!

    Worked perfectly! Thank you again!

  4. [...] install terlebih dahulu plugin Change Admin Username, dan jangan lupa diaktifkan. Dari admin area silakan klik menu Users dan pilih menu Change [...]

  5. 27
    Ashik says:

    This works fine!!!!!!!!!!!!1

  6. 28
    anabasius says:

    That worked beautifully, thank you. :-)

  7. 29
    dlv says:

    works perfect, fast, simply…what more we want ?
    i have to say thank you White Shadow

    adeux!

  8. 31
    Ray says:

    Hi w-shadow,

    If I remove the admin-only restriction for the “Change Username” page, would anyone be allowed to change their username?

    Also does your plugin do checks to see if a username is already taken? I’m guessing probably not.

    Thanks for reading!

  9. 32
    White Shadow says:

    You are correct – removing the restriction would allow anyone to change their username. And no, it doesn’t check for duplicate username.

  10. 34
    Kenny says:

    It works well with WP 2.8.2 as well, tks!

  11. 35
    Tunde says:

    Hi White Shadow,

    I just wanted to say a very big ´Thank You´for creating this plugin…I´ve spent the last 2 weeks trying figure out how to change my ´admin´ username using phpMyAdmin and just as I was about to give up and pay someone to make the changes for me…I found this post! What luck! It took me 2 minutes to do what I´ve been trying to do for 2 weeks!

    …and just so you know, I´m using the plugin on WP v 2.8.3 and had absolutely no problems installing, activating it and making my changes…I´ll let you know if any problems arise in the future.

    Thanks again for all your hard work..stay blessed :-)

    Tunde x

  12. [...] به آسانی شرح داده است. همچنین دو افزونه WPVN – Username Changer و Change Admin Username برای این کار وجود [...]

  13. 37
    Rob Fuller says:

    Please contact me, I have a cool feature idea for this plugin that you might find handy as well.

  14. 38
    תוסף מתורגם - שינוי שם משתמש ראשי ADMIN | עולם הוורדפרס, צילום ומה שביניהם - BETA 2 says:

    [...] מעניינים, אחד מהתוספים שנתקלתי בהם הוא התוסף הבא שנקרא change admin username מבית היוצר של W-Shadow.com. האמת שלדעתי הרבה משתמשים יאהבו [...]

  15. 39
    luc says:

    thx, i will try it

  16. 40
    harry says:

    Hi shadow…

    I read with intersest about the plug in….I just installed WP and didn’t have a clue about using a different username, so I would like to change the admin name.(used fantistico)….Anyway, I Dl’d the folder, unzipped it, got it into the files on my server….but they are not showing up in the DB….

    thanks

    harry

  17. 41
    White Shadow says:

    I’m afraid your comment is somewhat confusing. Are you sure you installed the plugin correctly? You need to copy the change-admin-username folder to the /wp-content/plugins/ directory and then activate the plugin in the “Plugins” tab of the WP dashboard. Then follow the instructions in the post above.

  18. 42
    harry says:

    Hi WS,

    thanks for replying. I see it in the “plug in” files next to the other ones I DL’d….But when I go to the dasboard, I do not see it listed in the installed section….yet the other plug-ins I have tried do show up. I did unzip it before transferring it with File Zilla, and like I said, the other plug-ins I downloaded do show up.

    Any idea why it does not show up in the dashboard?..

    thanks for taking the time to answer..

    Harry

  19. 43
    White Shadow says:

    This is probably obvious, but have you checked the “Inactive” tab?

    Anyway, it is nevertheless a problem with the installation (it couldn’t possible be a bug in the plugin itself because you haven’t even activated it yet). Maybe the .php file got corrupted during unzipping or the FTP transfer? Try doing it again.

    Another thing you could check is whether the webserver has sufficient privileges to read the plugin file.

  20. 44
    harry says:

    Thanks WP, I will try that tomorrow and get back…

    I think its the corruption angle myself….I’m sure Host gator is fine with privileges as the other plug ins have worked fine…

  21. 45
    Andrei says:

    Thanks. It works. Simple and effective :)

  22. 46
    harry says:

    Hi WS,….Good Morning, I wanted to give you an update and to say thanks. I deleted the plug in, repeated the same procedure( DL to desktop, unzip, FTR through file zilla)….It shows up in my Host gator Files, but did not show up in the WP Dashboard.

    Bur As I was looking at everything, I noticed an upload button in the Dashboard “plug-ins” section which allows you to upload a zipped folder from the PC….. So I did that instead. Installed it, and it worked fine……

    I have since tried other plug ins through FTP, and they all showed up, so it must be some sort of glitch…..

    Bur as long as it’s installed, I’m happy….

    If I can ever help you with RC cars, or anything on my site, let me know….

  23. 47
    White Shadow says:

    Well, I’m glad you got it working.

  24. 49
    ziRta says:

    Hi WS,
    I really appreciate your plugin but it isn’t working for me :( It changed my admin username but now i can’t seem to login neither with the old nor the new username. If I delete the plugin via ftp, can it be fixed?

  25. 50
    White Shadow says:

    Try clearing your cookies first.

    If that doesn’t help, you’ll need to go into the database with something like phpMyAdmin and manually change the username of the appropriate record back to the old value in the wp_users table. Just deleting the plugin won’t be enough.

  26. 51
    ziRta says:

    Been there, done that… I renamed the username back to admin via phpmyadmin, but when I log in, the wp-login.php stays blank… If I type a different username or password, it marks them as incorrect, and insists that my browser is blocking WP’s cookies and I shall activate that -but it is done. The site stays functional, at least. Maybe it’s my fault, i messed around with the .htaccess and things, trying to make the installation safer.

  27. 52
    White Shadow says:

    I’m now more inclined to believe it’s one of those “.htaccess and things”. Changing the username in the DB is the only thing the plugin does, so anything on top of that would be caused by something else.

Pages: « 1 [2] 3 » Show All

Leave a Reply