get_network_by_path
get_network_by_path ( $domain, $path, $segments = null )
Parameters:- (string) domain Domain to check.
- (string) path Path to check.
- (int|null) segments Path segments to use. Defaults to null, or the full path.
Returns:- (WP_Network|false) Network object if successful. False when no network is found.
Defined at: - Introduced in WordPress: 3.9.0
- Deprecated in WordPress: —
Description
Retrieves the closest matching network for a domain and path.