Retrieves the closest matching network for a domain and path.
Parameters
$domain
stringrequired- Domain to check.
$path
stringrequired- Path to check.
$segments
int|nulloptional- Path segments to use. Defaults to null, or the full path.
Default:
null
Source
function get_network_by_path( $domain, $path, $segments = null ) {
return WP_Network::get_by_path( $domain, $path, $segments );
}
Changelog
Version | Description |
---|---|
3.9.0 | Introduced. |
User Contributed Notes
You must log in before being able to contribute a note or feedback.