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:

Description

Retrieves the closest matching network for a domain and path.

Related Functions

get_category_by_path, get_network_option, get_site_by_path, get_page_by_path, get_network

Top Google Results

User discussions

wpseek mobile