WordPress Developer Resources
File: wp-includes/ms-settings.php
Fires after the current site and network have been detected and loaded in multisite’s bootstrap.