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



wp_get_network ›

Desde3.9.0
Obsoleto4.7.0
wp_get_network ( $network )
Parâmetros:
  • (object|int) $network The network's database row or ID.
    Required: Yes
Ver:
Retorna:
  • (WP_Network|false) Object containing network information if found, false if not.
Definido em:
Codex:

Retrieve an object containing information about the requested network.



Fonte

function wp_get_network( $network ) {
	_deprecated_function( __FUNCTION__, '4.7.0', 'get_network()' );

	$network = get_network( $network );
	if ( null === $network ) {
		return false;
	}

	return $network;
}