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/
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/