WPMU If MU site has no administrator, deactivate site
I would start by looking into the set_user_role action hook. You would be passed 3 arguments to your callback function – the User ID, the new user role, and an array of the old user roles(that seems strange to me, that you can’t pass an array of roles, but oh well). So here’s an example … Read more