To create a new user or to delete an existing one in WordPress is a very easy process but to change or alter the username is not that much easy.
By default, WordPress doesn’t provides any option to modify or to change the username that already exists.
If you caught in a situation where you are bound to change a username then in that case what will you do? How will you change the username?
Don’t worry there is a solution for every problem in WordPress.
In this article I will teach you some simple tricks that works well and helps you to change the username of any user seamlessly.
Creating a new User and deleting the old one
One of the most easiest and preferred way to change the username is to create a new user with the desired username and delete the older one.
The process is very simple, firstly create a new user with different email address that is not previously used by any other user on your website.
Now click on ‘Users >> All Users’ from the navigation menu in the admin dashboard. You will get landed over to the ‘Users’ page that contains the list of all the users associated with your website.
Hover the mouse over the username which you want to delete, two links will appear below the username – ‘Edit’ and ‘Delete’. By clicking the ‘Delete’ link a new page will get open with the title ‘Delete Users’.
On this page you will be asked about what should be done with the content owned by that user.
In case you want to delete the content select the ‘Delete all content’ option otherwise retain it by clicking the radio button before ‘Attribute all content to:’ option and select the newly created user from the drop down menu.
Now click the Confirm Deletion button. This process will delete the user and assign its work to new user automatically.
That’s it, now you have successfully changed the username.
In case you want the old email address for your newly created user then simply replace the newer email with the older one.
Don’t forget to save the changes.
Change the Username with a Plugin
There are several plugins available in the WordPress repository that helps you to change the username in a minute or two.
However, many of them are not updated with the time. To be assured check the updated version of plugin before installing in order to avoid conflicts, if any, that may occur in future.
Currently, Username plugin is the latest and most updated plugin available at the time of writing this article. I have tried it personally and found it perfectly OK.
To avoid overload of plugins you can delete this plugin once you are all done. This will not affect in any manner the changes you have made.
Whenever you want to change any username just install it, use it and delete it. That’s it.
Change the Username Via phpMyAdmin
If you are not familiar with phpMyAdmin and don’t know how to make changes in WordPress database, then its my personal advice that you should avoid using this method.
Any mistake here may break your website altogether.
However, this method may be very useful in case you have lost the access of your admin dashboard. This may be due to forgetting your WordPress username and email address.
It will help you to find the username and change it directly from the database.
To change the username first of all get login to your cPanel by the credentials provided by your hosting service provider.
Scroll the page down to over ‘Databases’ section. Click on the ‘phpMyAdmin’ icon.
You will get landed over to a new page having title ‘phpMyAdmin’. Select the database of your website from the left hand side of this page.
A list of the database tables with ‘wp_’ as prefix will appear.
Click on the table ‘wp_users’ (It may be possible that the prefix of your blog may be different. This is due to the custom prefix you have selected at the time of your WordPress installation).
Now click the ‘Edit’ link on the username that you want to edit.
Change the ‘user_login’ value as per your choice. For example you can replace ‘admin’ to ‘john’
Click the Go button, that’s it.