WordPress at a glance
function is not described

get_network_by_path() WP 3.9.0

Retrieve the closest matching network for a domain and path.

No Hooks.


WP_Network/false. Network object if successful. False when no network is found.


get_network_by_path( $domain, $path, $segments );
$domain(string) (required)
Domain to check.
$path(string) (required)
Path to check.
Path segments to use.
Default: null, or the full path

Code of get network by path: wp-includes/ms-load.php WP 5.2.2

function get_network_by_path( $domain, $path, $segments = null ) {
	return WP_Network::get_by_path( $domain, $path, $segments );