Created
July 2, 2020 12:57
-
-
Save andrewlimaza/1240eeb94895f6985bf62745560f88a5 to your computer and use it in GitHub Desktop.
Reset Views, Visits and Login report data for Paid Memberships Pro.
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
/** | |
* Ensure your table names match exactly. Change the prefix 'wp_' if needed. | |
* Run simulation query first before executing this query. | |
* Have a full database backup. | |
*/ | |
DELETE FROM `wp_options` WHERE `option_name` = 'pmpro_views'; | |
DELETE FROM `wp_options` WHERE `option_name` = 'pmpro_logins'; | |
DELETE FROM `wp_options` WHERE `option_name` = 'pmpro_visits'; | |
DELETE FROM `wp_usermeta` WHERE `meta_key` = 'pmpro_views'; | |
DELETE FROM `wp_usermeta` WHERE `meta_key` = 'pmpro_logins'; | |
DELETE FROM `wp_usermeta` WHERE `meta_key` = 'pmpro_visits'; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment