You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In core PMPro, we remove a user's membership level when they are deleted; however on a multisite, "deleting" a user from the WP Users page on a subsite does not run the delete hooks. This means that users can have membership levels on a site that they are no longer a user on.
I think this is okay, I'm happy with having this as a gist for now as removing a user from a site doesn't delete them and I'm worried that running this would affect their subscriptions on other sites.
In core PMPro, we remove a user's membership level when they are deleted; however on a multisite, "deleting" a user from the WP Users page on a subsite does not run the delete hooks. This means that users can have membership levels on a site that they are no longer a user on.
To fix this, we need to additionally remove a user's membership level on the "remove_user_from_blog" hook:
https://developer.wordpress.org/reference/hooks/remove_user_from_blog/
The text was updated successfully, but these errors were encountered: