wpseek.com
Un motore di ricerca WordPress per sviluppatori e autori di temi



get_network_by_path › WordPress Function

Da3.9.0
Deprecaton/a
› get_network_by_path ( $domain, $path, $segments = null )
Parametri: (3)
  • (string) $domain Domain to check.
    Richiesto: Sì
  • (string) $path Path to check.
    Richiesto: Sì
  • (int|null) $segments Path segments to use. Defaults to null, or the full path.
    Richiesto: No
    Default: null
Ritorna:
  • (WP_Network|false) Network object if successful. False when no network is found.
Definito a:
Codex:

Retrieves the closest matching network for a domain and path.

{@internal In 4.4.0, converted to a wrapper for WP_Network::get_by_path()}


Sorgenti

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