A WordPress-centric search engine for devs and theme authors



get_network_by_path ›

Since3.9.0
Deprecatedn/a
get_network_by_path ( $domain, $path, $segments = null )
Parameters: (3)
  • (string) $domain Domain to check.
    Required: Yes
  • (string) $path Path to check.
    Required: Yes
  • (int|null) $segments Path segments to use. Defaults to null, or the full path.
    Required: No
    Default: null
Returns:
  • (WP_Network|false) Network object if successful. False when no network is found.
Defined at:
Codex:

Retrieve the closest matching network for a domain and path.



Source

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