Last active
November 6, 2019 10:16
-
-
Save zohar/c98e14c7307c83d43477efb665ceab3b to your computer and use it in GitHub Desktop.
Sanitize mails in Wordpress - user_email column on wp_users table - using wp-cli
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
wp search-replace '^([^@]*)@(.*)$' '\1@localhost' wp_users --include-columns=user_email --regex --regex-flags='i' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment