Retrieves the closest matching network for a domain and path.
$domainstringrequired
$pathstringrequired
$segmentsint|nulloptional
Default:null
function get_network_by_path( $domain, $path, $segments = null ) {
return WP_Network::get_by_path( $domain, $path, $segments );
}
| Version | Description |
|---|---|
| 3.9.0 | Introduced. |
© 2003–2024 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/functions/get_network_by_path