Created
November 13, 2022 16:04
-
-
Save 8ctopotamus/b7474c6e027ae4c6cabb1c15f9fb03aa to your computer and use it in GitHub Desktop.
Update a WP User's nicename/login through mysql
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
UPDATE wp_users SET user_nicename = "new_username", user_login = "new_username" WHERE user_login = "old_username"; | |
SELECT * FROM wp_users WHERE user_login = "new_username"; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment