Un motore di ricerca WordPress per sviluppatori e autori di temi



get_network_by_path ›

Da3.9.0
Deprecaton/a
get_network_by_path ( $domain, $path, $segments = null )
Parametri: (3)
  • (string) $domain Domain to check.
    Richiesto:
  • (string) $path Path to check.
    Richiesto:
  • (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:

Retrieve the closest matching network for a domain and path.



Sorgenti

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