wpseek.com
Outil de recherche WordPress pour les développeurs et auteurs de thèmes



wp_get_network › WordPress Function

Depuis3.9.0
Dépréciée4.7.0
wp_get_network ( $network )
Paramètres:
  • (object|int) $network The network's database row or ID.
    Requis: Oui
Voir:
Retourne:
  • (WP_Network|false) Object containing network information if found, false if not.
Défini(e) dans:
Codex:

Retrieves an object containing information about the requested network.



Source

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

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

	return $network;
}