Whether you run a WordPress community with 1,000 members or a WooCommerce store with 100,000 orders, sometimes for testing you want to change all the account emails to something like “[email protected]”
After all, you don’t want to accidentally send a test email to all those users!
How to Change All WordPress User Emails to [email protected]
Run the following SQL query on the database for recent versions of phpMyAdmin:
UPDATE `wp_users` SET `user_email`='[email protected]'
Run the following SQL query on the database for earlier versions of phpMyAdmin:
UPDATE wp_users SET user_email='[email protected]'
This will set all WordPress users’ email addresses to “[email protected]”.
How To Update All WooCommerce Order Email Addresses to [email protected]
If you are using WooCommerce, do the above and THEN do this for newer versions of phpMyAdmin:
UPDATE `wp_usermeta` SET `meta_value` = '[email protected]' WHERE `meta_key` = 'billing_email'
If you are using WooCommerce, do the above and THEN do this for older versions of phpMyAdmin:
UPDATE wp_usermeta SET meta_value = '[email protected]' WHERE meta_key = 'billing_email'
Pretty nifty, eh?
More posts from themightymo.com
The Mighty Moo! WordPress Theme Version 1.2.4 Update
I added the following functionality to The Mighty Moo! WordPress theme: Custom stylesheet class example Basically, what I did was add an example to the custom stylesheet to get you rolling. 🙂
The Mighty Moo! WordPress Theme – Version 1.2.3
I just completed another series of updates to “The Mighty Moo!” WordPress theme. Version 1.2.3 adds: Page Template Widgetized Sidebars underneath the content Moved javaScript code into footer.php Theme image files (these were accidentally left out of previous releases) Download it today!
The Mighty Moo! WordPress Theme, Version 1.2.2 Released
Today, I spent eight hours making a number of significant updates to The Mighty Moo! WordPress theme. This set of updates increases the version number to 1.2.2. and include: Single Page template Comment Threading Fixed Commenting bug Custom Style Sheet (Upgrades now won’t mess up your custom CSS edits!) The next round of updates will…