wpseek.com
Uma área de pesquisa sobre o WordPress para devs e autores do tema



get_network_by_path › WordPress Function

Desde3.9.0
Obsoleton/a
get_network_by_path ( $domain, $path, $segments = null )
Parâmetros: (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
    Padrão: null
Retorna:
  • (WP_Network|false) Network object if successful. False when no network is found.
Definido em:
Codex:

Retrieves the closest matching network for a domain and path.



Fonte

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