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
Related posts :

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

Pages: [1] 2 3 » Show All

  1. 1
    Mr Moo says:

    I’ve been manually changing the username on all of my sites with phpMyAdmin, so this should save me some effort, thanks :)

  2. 3
    Dunn says:

    After we change the username, is it okay to delete or remove the plugin since we are not gonna use it anymore?

  3. 4
    White Shadow says:

    @Dunn – Yes, you can delete the plugin then.

  4. [...] I så fald skal du ind i databasen og ændre det eller bruge det plugin, der findes til at ændre brugernavnet. [...]

  5. The plugin worked perfectly.
    Thanks for the plugin.

  6. [...] Change Admin Username Plugin Tags: WordPress Share: digg_skin = ‘compact’; [...]

  7. 8
    Dr Bikash says:

    Hello White Shadow
    Thanks for the great plug-in.
    I have made an article about it. I have gave you back links to your site. I have also sent you a track back. But I am quite new to the arena. So please dont mind if I have made a mistake.
    To be on safer side I am giving a back link to the exact article that I wrote.

    http://www.drbikash.com/2008/11/17/how-to-change-the-default-admin-username-in-word-press-blog/

    Thanks again for the great plug-in.
    Dr Bikash

Pages: [1] 2 3 » Show All

Leave a Reply