Skip to content

Instantly share code, notes, and snippets.

@zohar
Last active November 6, 2019 10:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save zohar/c98e14c7307c83d43477efb665ceab3b to your computer and use it in GitHub Desktop.
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
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