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.

Related posts :

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

  1. pimpi says:

    SORRY! was in the wrong folder. It works with 2.8.6!! Great thankyou!! Next round’s on me!

  2. Heather P. says:

    Hi there, this plugin worked perfectly! Except when I post a new blog onto my website, it still names the author as the “admin” username, not as my new username that I created with the plugin. Is there a fix for this? Thanks!

    Heather

  3. White Shadow says:

    You might need to change the “Display name publicly as” setting in Users -> Your Profile.

  4. Irene S says:

    Thanks, this is just what I was looking for. Worked easily and perfectly. Love it!

    Irene

  5. Jake says:

    Great Plugin, works great!

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

  7. Thanks for the article. After bouncing around several hosts myself I finally landed with HostGator and they have yet to let me down despite their growth.

  8. alx says:

    Thank for this plugin works with 2.9.2

  9. […] Change Admin User Name – Another useful plugin for WordPress security that bypasses WordPresse’s inability to allow administrators to change their username. […]

  10. […] to change your admin username, you can do it by manually editing your database via PHPMYadmin or using a plugin (note that I have not used either method). Be sure to backup your database before you take this […]

  11. mark says:

    dude!….THANKS A LOT!….your plug-in works for me,it took me 6 hours looking for some ways to changed my user name from admin into my desired username…ive seen a lot but just dont wanna mess things on some php editing…thanks your plug-in does work!

  12. Karen says:

    Hi there, Ive downloaded the plug in and it worked fine with the first change of username, but then I went in and changed it again to something less generic or common now for the life of me, I can’t get in again, any suggestions please what I could do? ???Thanks heaps!

  13. White Shadow says:

    Try manually changing the username back to the one that working. You can do this by opening your WP database in something like phpMyAdmin and editing the “user_login” field of your user record in the wp_users table.

  14. Karen says:

    Its so strange because its saying no username and email address is registered ?? Is there anyway I can get in, I know its my muck up, any help appreciated.

  15. Karen says:

    hey thanks for that, its a bit techy for me lol but I’ll get onto it, would there be any video tutorials on youtube for that, sorry bit of a newbie!

  16. KRAMESH says:

    Previus user name is rameshkavadiki now i want to change kramesh

  17. kramesh says:

    i want to change username as kramesh

  18. White Shadow says:

    Well then, install the plugin and go change it.

  19. Mark says:

    I used this on my multisite. I now no longer have multisite functionality. How can I revert back?

  20. White Shadow says:

    Technically, all this plugin does is change the username. If you change it back (via the plugin, or directly editing the wp_users DB table), perhaps the multisite feature will start working again.

Leave a Reply