How to Set or Update All of Your WordPress User Email Accounts to a Test Email Address in mysql and phpMyAdmin (and WooCommerce!)

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?

How To Update All WooCommerce Order Email Addresses to test@test

The Mighty Mo! Design Co.

RSS From Toby’s Blog

  • WordPress Maintenance Checklist: Keep Your Site Running Smoothly
    Discover the essential tasks for effective WordPress maintenance and ensure your website runs smoothly and securely with our comprehensive guide.
  • Why We Don’t Automate Our WordPress Hosting Business
    There are some great platforms out there to automate your website hosting biz: But we don’t use any of them. Here’s why: Hosting companies only get worse over time. Over the years, I’ve hosted websites on a bunch of platforms: All of these hosting companies share one thing in common: Over time, they all got…
  • Fortify Your WordPress Site: Essential Security Steps
    Securing your WordPress site is a critical component of maintaining your online presence and safeguarding your data. Security is no longer a luxury, it has become a necessity in today’s digital world, where threats are lurking at every corner. This piece dives deep into WordPress security basics, giving you a comprehensive understanding of common vulnerabilities…

More posts from themightymo.com

Simple Pull Quote WordPress Plugin Update!

By | April 23, 2009

I just updated our Simple Pull Quote WordPress plugin to include an external style sheet that you can edit.  The plugin is simple and completely customizable via CSS. It uses shortcode and custom fields that make it easy to control where the pull quotes will go.

PC Web Blogging for Beginners Class Tonight!

By | April 20, 2009

Tonight, I will be teaching a class for folks who are interested in learning more about blogging.  The class, titled PC Web Blogging for Beginners,  is offered at Minneapolis’ Washburn High School via Minneapolis Community Education‘s Adult Enrichment program.  Anyone can register for only $15.  I am excited to be participating in this exciting venture! …

WordPress Pull Quote Plugin

By | April 5, 2009

I discovered today that there is not a pull quote plugin for WordPress that does what I would like it to do.  So, I have begun developing one myself.  This is my first attempt at a plugin, and so far it has been a great learning experience (read: lots and lots of failures).  haha!  I…

RSS From Toby’s Blog

  • WordPress Maintenance Checklist: Keep Your Site Running Smoothly
    Discover the essential tasks for effective WordPress maintenance and ensure your website runs smoothly and securely with our comprehensive guide.
  • Why We Don’t Automate Our WordPress Hosting Business
    There are some great platforms out there to automate your website hosting biz: But we don’t use any of them. Here’s why: Hosting companies only get worse over time. Over the years, I’ve hosted websites on a bunch of platforms: All of these hosting companies share one thing in common: Over time, they all got…
  • Fortify Your WordPress Site: Essential Security Steps
    Securing your WordPress site is a critical component of maintaining your online presence and safeguarding your data. Security is no longer a luxury, it has become a necessity in today’s digital world, where threats are lurking at every corner. This piece dives deep into WordPress security basics, giving you a comprehensive understanding of common vulnerabilities…