Title: wp-includes/ms-load.php | Developer.WordPress.org

---

# File: wp-includes/ms-load.php

 * function[ms_load_current_site_and_network()](https://developer.wordpress.org/reference/functions/ms_load_current_site_and_network/)
 * Identifies the network and site of a requested domain and path and populates 
   the corresponding network and site global objects as part of the multisite bootstrap
   process.
 * Used by [0 functions](https://developer.wordpress.org/reference/functions/ms_load_current_site_and_network/#used-by)
   | Uses [10 functions](https://developer.wordpress.org/reference/functions/ms_load_current_site_and_network/#uses)
   | Source: [wp-includes/ms-load.php:297](https://github.com/WordPress/wordpress-develop/blob/6.9.4/src/wp-includes/ms-load.php#L297-L450)
 * hook[ms_network_not_found](https://developer.wordpress.org/reference/hooks/ms_network_not_found/)
 * Fires when a network cannot be found based on the requested domain and path.
 * Used by [1 function](https://developer.wordpress.org/reference/hooks/ms_network_not_found/#used-by)
   | Uses [0 functions](https://developer.wordpress.org/reference/hooks/ms_network_not_found/#uses)
   | Source: [wp-includes/ms-load.php:359](https://github.com/WordPress/wordpress-develop/blob/6.9.4/src/wp-includes/ms-load.php#L359-L359)
 * function[wp_get_network()](https://developer.wordpress.org/reference/functions/wp_get_network/)
 * Retrieves an object containing information about the requested network.
 * Used by [0 functions](https://developer.wordpress.org/reference/functions/wp_get_network/#used-by)
   | Uses [2 functions](https://developer.wordpress.org/reference/functions/wp_get_network/#uses)
   | Source: [wp-includes/ms-load.php:564](https://github.com/WordPress/wordpress-develop/blob/6.9.4/src/wp-includes/ms-load.php#L564-L573)
 * function[get_site_by_path()](https://developer.wordpress.org/reference/functions/get_site_by_path/)
 * Retrieves the closest matching site object by its domain and path.
 * Used by [1 function](https://developer.wordpress.org/reference/functions/get_site_by_path/#used-by)
   | Uses [3 functions](https://developer.wordpress.org/reference/functions/get_site_by_path/#uses)
   | Source: [wp-includes/ms-load.php:163](https://github.com/WordPress/wordpress-develop/blob/6.9.4/src/wp-includes/ms-load.php#L163-L265)
 * hook[site_by_path_segments_count](https://developer.wordpress.org/reference/hooks/site_by_path_segments_count/)
 * Filters the number of path segments to consider when searching for a site.
 * Used by [1 function](https://developer.wordpress.org/reference/hooks/site_by_path_segments_count/#used-by)
   | Uses [0 functions](https://developer.wordpress.org/reference/hooks/site_by_path_segments_count/#uses)
   | Source: [wp-includes/ms-load.php:177](https://github.com/WordPress/wordpress-develop/blob/6.9.4/src/wp-includes/ms-load.php#L177-L177)
 * hook[pre_get_site_by_path](https://developer.wordpress.org/reference/hooks/pre_get_site_by_path/)
 * Determines a site by its domain and path.
 * Used by [1 function](https://developer.wordpress.org/reference/hooks/pre_get_site_by_path/#used-by)
   | Uses [0 functions](https://developer.wordpress.org/reference/hooks/pre_get_site_by_path/#uses)
   | Source: [wp-includes/ms-load.php:212](https://github.com/WordPress/wordpress-develop/blob/6.9.4/src/wp-includes/ms-load.php#L212-L212)
 * function[ms_not_installed()](https://developer.wordpress.org/reference/functions/ms_not_installed/)
 * Displays a failure message.
 * Used by [0 functions](https://developer.wordpress.org/reference/functions/ms_not_installed/#used-by)
   | Uses [9 functions](https://developer.wordpress.org/reference/functions/ms_not_installed/#uses)
   | Source: [wp-includes/ms-load.php:466](https://github.com/WordPress/wordpress-develop/blob/6.9.4/src/wp-includes/ms-load.php#L466-L512)
 * function[get_current_site_name()](https://developer.wordpress.org/reference/functions/get_current_site_name/)
 * This deprecated function formerly set the site_name property of the $current_site
   object.
 * Used by [0 functions](https://developer.wordpress.org/reference/functions/get_current_site_name/#used-by)
   | Uses [1 function](https://developer.wordpress.org/reference/functions/get_current_site_name/#uses)
   | Source: [wp-includes/ms-load.php:527](https://github.com/WordPress/wordpress-develop/blob/6.9.4/src/wp-includes/ms-load.php#L527-L530)
 * function[wpmu_current_site()](https://developer.wordpress.org/reference/functions/wpmu_current_site/)
 * This deprecated function managed much of the site and network loading in multisite.
 * Used by [0 functions](https://developer.wordpress.org/reference/functions/wpmu_current_site/#used-by)
   | Uses [1 function](https://developer.wordpress.org/reference/functions/wpmu_current_site/#uses)
   | Source: [wp-includes/ms-load.php:546](https://github.com/WordPress/wordpress-develop/blob/6.9.4/src/wp-includes/ms-load.php#L546-L550)
 * function[ms_site_check()](https://developer.wordpress.org/reference/functions/ms_site_check/)
 * Checks status of current blog.
 * Used by [0 functions](https://developer.wordpress.org/reference/functions/ms_site_check/#used-by)
   | Uses [7 functions](https://developer.wordpress.org/reference/functions/ms_site_check/#uses)
   | Source: [wp-includes/ms-load.php:74](https://github.com/WordPress/wordpress-develop/blob/6.9.4/src/wp-includes/ms-load.php#L74-L127)
 * hook[ms_site_check](https://developer.wordpress.org/reference/hooks/ms_site_check/)
 * Filters checking the status of the current blog.
 * Used by [1 function](https://developer.wordpress.org/reference/hooks/ms_site_check/#used-by)
   | Uses [0 functions](https://developer.wordpress.org/reference/hooks/ms_site_check/#uses)
   | Source: [wp-includes/ms-load.php:83](https://github.com/WordPress/wordpress-develop/blob/6.9.4/src/wp-includes/ms-load.php#L83-L83)
 * function[get_network_by_path()](https://developer.wordpress.org/reference/functions/get_network_by_path/)
 * Retrieves the closest matching network for a domain and path.
 * Used by [0 functions](https://developer.wordpress.org/reference/functions/get_network_by_path/#used-by)
   | Uses [1 function](https://developer.wordpress.org/reference/functions/get_network_by_path/#uses)
   | Source: [wp-includes/ms-load.php:141](https://github.com/WordPress/wordpress-develop/blob/6.9.4/src/wp-includes/ms-load.php#L141-L143)
 * function[is_subdomain_install()](https://developer.wordpress.org/reference/functions/is_subdomain_install/)
 * Whether a subdomain configuration is enabled.
 * Used by [15 functions](https://developer.wordpress.org/reference/functions/is_subdomain_install/#used-by)
   | Uses [0 functions](https://developer.wordpress.org/reference/functions/is_subdomain_install/#uses)
   | Source: [wp-includes/ms-load.php:18](https://github.com/WordPress/wordpress-develop/blob/6.9.4/src/wp-includes/ms-load.php#L18-L24)
 * function[wp_get_active_network_plugins()](https://developer.wordpress.org/reference/functions/wp_get_active_network_plugins/)
 * Returns array of network plugin files to be included in global scope.
 * Used by [2 functions](https://developer.wordpress.org/reference/functions/wp_get_active_network_plugins/#used-by)
   | Uses [2 functions](https://developer.wordpress.org/reference/functions/wp_get_active_network_plugins/#uses)
   | Source: [wp-includes/ms-load.php:37](https://github.com/WordPress/wordpress-develop/blob/6.9.4/src/wp-includes/ms-load.php#L37-L57)
 * hook[ms_site_not_found](https://developer.wordpress.org/reference/hooks/ms_site_not_found/)
 * Fires when a network can be determined but a site cannot.
 * Used by [1 function](https://developer.wordpress.org/reference/hooks/ms_site_not_found/#used-by)
   | Uses [0 functions](https://developer.wordpress.org/reference/hooks/ms_site_not_found/#uses)
   | Source: [wp-includes/ms-load.php:418](https://github.com/WordPress/wordpress-develop/blob/6.9.4/src/wp-includes/ms-load.php#L418-L418)