Hi @harrissa158
Thank you for reaching out to Paid Memberships Pro.
What groups are you referring to? Is this the BuddyPress/BuddyBoss groups or another plugin?
No, a group from your plugin, set a default group will return all users leaves other groups to go on the default group.
You may use a small code snippet to assign users a default membership level when they cancel their membership level by following this guide – https://www.paidmembershipspro.com/change-membership-level-on-cancellation-or-expiration/
With the above guide, we hook into pmpro_after_change_membership_level (https://www.paidmembershipspro.com/hook/pmpro_after_change_membership_level/) which we then can see if the user’s level_id is 0 (cancelling) we can assign them a default membership level.
i can’t read your page… send me the snippet here please
problem, when i cancel a group subscription, with your scripts, it return to me to the same group..
The above script that @andrewza shared (https://github.com/strangerstudios/pmpro-snippets-library/blob/dev/membership-levels/change-membership-level-on-cancellation-expiration.php) will help get you started with detecting when a member cancels their membership.
Code recipes might need a few adjustments to work exactly as to how you need them though.
We recommend reaching out to a local developer in your area, or post a project on jobs.wordpress.net for further assistance with this.
Because there have not been any recent updates to this topic, we will be changing the status to resolved.
If you’re enjoying Paid Memberships Pro, would you mind rating it 5-stars to help spread the word? https://wordpress.org/support/plugin/paid-memberships-pro/reviews/