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



wp_get_network › WordPress Function

Da3.9.0
Deprecato4.7.0
wp_get_network ( $network )
Parametri:
  • (object|int) $network The network's database row or ID.
    Richiesto:
Vedi:
Ritorna:
  • (WP_Network|false) Object containing network information if found, false if not.
Definito a:
Codex:

Retrieves an object containing information about the requested network.



Sorgenti

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

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

	return $network;
}