Last active
November 27, 2020 12:17
-
-
Save andrewlimaza/97b86cbda2e19350a6cb0a77c91922e4 to your computer and use it in GitHub Desktop.
SQL to update a specific user's start date [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
/** | |
* Please have a backup before running this script on your database | |
* Adjust the database prefix 'wp_' to match that of your database. | |
* You may alter the WHERE clause for any condition you would like. | |
**/ | |
UPDATE wp_pmpro_memberships_users | |
SET startdate = '2020-01-01 00:00:00' | |
WHERE user_id = 1 AND membership_id = 3 AND status = 'active' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment