Duplicate Snippet
Embed Snippet on Your Site
MemberPress: Delete Transaction and User Account When Sub-Account is Removed
Adding this code snippet will automatically delete user account and related transaction when a sub-account is removed from the Corporate Account holder’s Sub-Accounts list.
Note: The code snippet checks if the sub-account user has any other active memberships before deleting the transaction and the user account. If the sub-account user has any other active subscription, the user will not be deleted.
Code Preview
php
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
Comments