Skip to content

Instantly share code, notes, and snippets.

@kimcoleman
Forked from strangerstudios/set_enddate_null.sql
Last active November 30, 2018 18:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kimcoleman/9c3d93157cd32a96e41871fe1106954c to your computer and use it in GitHub Desktop.
Save kimcoleman/9c3d93157cd32a96e41871fe1106954c to your computer and use it in GitHub Desktop.
This SQL query will clear the expiration date for active recurring memberships in Paid Memberships Pro.
# BACKUP FIRST
# This will remove any expiration date on
# every member in your database.
# BACKUP FIRST
UPDATE wp_pmpro_memberships_users
SET enddate = '0000-00-00 00:00:00'
WHERE status = 'active'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment