strangerstudios / pmpro-toolkit

Collection of tools for sandbox and development sites running Paid Memberships Pro.
https://www.paidmembershipspro.com/add-ons/pmpro-toolkit/
7 stars 10 forks source link

Feature Request: option to Delete all member data by user ID(s) #27

Closed kimwhite closed 3 months ago

kimwhite commented 2 years ago

If a site owner needs to remove all membership data for a specific user. Currently, you can delete ALL data. Delete all member data. (wp_pmpro_memberships_users, wp_pmpro_membership_orders, wp_pmpro_discount_codes_uses)

Would be nice to do this one user at a time. An option to remove this information just for 1 user id.

mircobabini commented 2 years ago

We do have a feature which removes a user and some of its informations (oblivion rights/RTBF).

I mean, we extend the standard WordPress feature to erase user data. Tools > Erase Personal Data (url: /wp-admin/erase-personal-data.php)

That one does not delete the user orders though, not sure about memberships data and codes_uses. We can provide a snippet to add an additional eraser though, but still deleting the user.

Otherwise, if you want to delete membership data cited above while keeping the user, it's easier to run some MySQL queries.

kimcoleman commented 3 months ago

Yes let's rather recommend that people use the Request to be Forgotten systems in core WP.