Wordpress news and rumors

Changing user names in WordPress

If you've ever tried to change a user name before, chances are you've given up because, by default, it is something that cannot be done. But there are different methods to achieve this. Let's have a look at different methods to change a user name.

Solution 1. Create a new user and delete the old one

This solution is the simplest and most logical of all: if we cannot change the username of a particular user, we believe a new one to replace it. To do this, you need only follow these steps:

Creating a new user

First of all, take a look at the attributes of the user you want to rename, since they will copy to the new user. To do this, go to Desktop WordPress “Users” and find the user that you want to copy. Tip: Do not do this with the administrator account, do it with an editor account, for security reasons.

Check the user and it is better if you leave this open in a separate tab, to have all those fields on the screen.

In a new tab, open a new screen to create a new user (Users' Add new), and devote yourself to duplicate all fields of the old user to the new, except the username, which should contain the new name.

Delete the old user and assign content

Once you've completed the process, you will have two equal users who only differ in the username and associated posts. And you only want one user. To do this, go back to the screen “All users”, find the old user and click “Delete”.

Then simply indicates that you want to attribute all the contents of the old user to the new user and, voila! You've already changed the username that you did not like. And you have a new user with the new name and old posts.

The only drawback to this solution is that if you do not know the original user password, you'll be forced to tell the editor that not only changed his username, but also his password. So, if you want to recover the old, you must reset by following the usual steps.

Solution 2. Change the username with a plugin

Another simple option (more even than the previous one) is to use a plugin: Username Changer. Install it on your WordPress from the Desktop and then simply go to Users' Username Changer to change the name of the user.

As you can see, this plugin makes it much easier work. Simply select the user you want to rename, specify the new user name and save the changes. In half a minute, it is solved.

Solution 3. Editing database

Finally, it is the most advanced option to change a user name is to edit the WordPress database. In general, no one recommends using this method, but there are times when there is no other solution (if, for example, do not have access to the desktop because you have forgotten the user and the email).

The first thing you need to do is access the administration panel of your hosting provider. The most common is a cPanel, but there are cases where the interface is different.

From here, look for a database section and/or a link to phpMyAdmin. When you find it, click on the link and will open a web interface that manipulates tables in your database. Find a table called wp_users (by default, all tables have the prefix wp_, but your installation may use a different one).

Search the user you are interested in the table and change the values of columns and user_nicename user_login the new user name. And that's it!

Theses 3 solutions can solve your problem with your username and will help you check your installation!