Support Forum
A user wants to change his user name but keep the posts he's made on the forum. I understand that it's not possible to change a user name. Is that correct? As a workaround could I create a new user, transfer his posts from his old account to his new account and delete his old account. If it is possible, how do I do it?
Technically WordPress does not allow you to change a users login name. Your proposed solution would actually be quite a nightmare as the users ID - which is used in a large number of data tables - is actually what is used internally to identify the user and you really do not want to change that.
Having said all that if you use a tool like phpMyAdmin and change the users login name in the 'users' table it will work although it is important to use a unique replacement not used by anyone else and not to change anything else in the data row.
But I didn't tell you that!
Anyway - the only person who should know or ever really use the login name is the user themselves with the sites admins being able to find out what it is...
YELLOW
SWORDFISH
|
It does not apply yet - partly because the hooks we really need are not in the WordPress core to pick up on user deletes in a useful way. We have raised an issue with the WP team and offered the code and we hope it will get incorporated sopn so we can improve the whole area of user deletion.
YELLOW
SWORDFISH
|
1 Guest(s)