WordPress provides the option to choose a specific username and password while setting up the WordPress for the first time. Most of us are stuck with this username. At some point in your web publishing journey, you might want to change the username for your site but are unable to do so because WordPress has no dedicated option to change the username.
In this article, we will be discussing 3 possible ways for you to change your username for your WordPress site. You may choose anyone relevant and easy for you to use.
Why you might want to change the username for you website?
Before, getting into how to? let’s discuss why you might want to change the username for your site. This might help clear up any doubt on whether you really want to change the username or stick with the current one.
- Irrelevant Username: You might want to change the username for your website because the username you are currently using is no more relevant to your brand or business.
- Secure Username: Most of the website stick with the admin as username because it is simple and easy to remember. However, this is not a secure username. This particular username is vulnerable to exploitation because it is the most commonly used username. You might want to read our article on Securing WordPress website if you are curious on securing your website.
- Handover Account: For some specific reason you might want to be handing over the responsibilities and user privileges to some other personnel. You might want to change username to represent that specific personnel.
How to change the username?
Now let’s get to the topic that you’ve been eagerly waiting for. When it comes to changing the username there are typically three ways to change it. The most efficient way is to use third party plugin which is very straight forward and easy to use. It is always useful to know all the ways, who knows when the specific method to change the username might be relevant based on the situation. Here are three popular ways to change the username for your WordPress site.
Change via WordPress Dashboard
You might be doubting this method because earlier I mentioned that there is no default option to change the username in WordPress itself and this is true to some extent. Well, this is a workaround method rather than a straightforward way of changing the username. In this method, we will be creating a different user and transferring the user responsibilities from the user which we wish to rename and finally delete the user. Here is a step-by-step guide on doing this.
- First of all, we will need to create a new user by going to Admin Dashboard > Users > Add New.
- Let’s fill up the form with desired username, strong password, first name, last name etc. One key point to keep in mind here is to fill in the dummy email address temporarily. Because we won’t be able to set the already registered email id which might be occupied by the existing user which we wish to rename. For now we might be setting to a dummy email id like email@example.com or anything else.
- And make sure you have selected the Administrator as a role.
- Next we will be deleting the user which we wish to replace. For this we will be logging out of the username we wish to delete. Then login using the new user that we just created.
- Then Go to Dashboard > Users > All Users. Delete the user we wish to rename.
- Next we set the Attribute all content to option to the new user. This confirms that the new user is privileged to edit all the contents.
Now after deleting the user we edit the new user and update the email id with the original email that was pre occupied by the previous user.
Changing username in Database itself
This is another way to change the username which is popular amongst the developer. For this method to work, you need to have access to the database PHPMyAdmin.
- Login to cPanel
- In the database panel of cPanel open phpmyadmin.
- In the left-hand panel click on the specific database for the website you are using. Database tables will appear on the right. Open the wp_users table. The table name prefix (wp_) might vary depending upon the prefix you have used.
- Double click on the username field and set the new username. That’s it.
Change using plugin
The last and most preferred way to change the username is using the plugin Easy Username Updater. For this you’ll need to add Easy Username Updater plugin to your WordPress website.
- Go to Dashobard > Plugins > Add New and then search for Easy Username Updater plugin in the searchbar.
- Install & Activate the plugin.
- Once activated, Go to Users > Username Updater.
- Click on the update link in the user detail row.
- New form will open up with the option to change the username. Type in your preferred username and update.
That’s it, You may delete the plugin once done or keep it for the future.
There might be several reasons for you to change the username for your WordPress site. You should always use the username relevant to your brand or business while keeping the security guidelines in mind. It is highly not recommended to use admin as the username. Hackers can easily predict the username for your admin and hack your website.
I personally feel using plugin to change the username is easy and straight-forward. But you may follow any method you like or is relevant for you.