Created
May 25, 2018 11:39
-
-
Save bmakowski/86810a3ca32f8a516830e1b82d5f7050 to your computer and use it in GitHub Desktop.
WordPress SQL delete all WooCommerce customers
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
delete | |
u,um | |
from wp_users u | |
join wp_usermeta um on um.user_id = u.id | |
where um.meta_key = 'wp_user_level' and um.meta_value = 0 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment