wpseek.com
Bazujące na WordPress narzędzie wyszukiwania dla deweloperów i twórców motywów.



get_network_by_path › WordPress Function

Od3.9.0
Przestarzałyn/a
get_network_by_path ( $domain, $path, $segments = null )
Parametry: (3)
  • (string) $domain Domain to check.
    Wymagane: Tak
  • (string) $path Path to check.
    Wymagane: Tak
  • (int|null) $segments Path segments to use. Defaults to null, or the full path.
    Wymagane: Nie
    Domyślny: null
Powrót:
  • (WP_Network|false) Network object if successful. False when no network is found.
Zdefiniowane na:
Codex:

Retrieves the closest matching network for a domain and path.



Źródło

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