Created
April 26, 2014 05:58
-
-
Save strangerstudios/11312833 to your computer and use it in GitHub Desktop.
SQL to remove Paid Memberships Pro levels from users, delete orders, and delete discount code uses. This will NOT cancel subscriptions at the payment gateway.
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
#Back up first. USE AT YOUR OWN RISK | |
TRUNCATE TABLE `wp_pmpro_memberships_users`; | |
TRUNCATE TABLE `wp_pmpro_membership_orders`; | |
TRUNCATE TABLE `wp_pmpro_discount_codes_uses`; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment