Created
January 29, 2022 16:14
-
-
Save caiovncius/b6448d3d10e5f9514581b1231bbe8c4b to your computer and use it in GitHub Desktop.
This file contains 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 = CONCAT(LEFT(user_login, INSTR(user_login, '@')), '') WHERE ID = 0; | |
UPDATE wp_users SET user_login = CONCAT(LEFT(user_login, INSTR(user_login, '@')), 'example.test') WHERE ID = 0; | |
UPDATE wp_users SET user_email = CONCAT(LEFT(user_login, INSTR(user_login, '@')), 'example.test') WHERE ID > = 0; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment