A WordPress-centric search engine for devs and theme authors



wp_get_network ›

Since3.9.0
Deprecated4.7.0
wp_get_network ( $network )
Parameters:
  • (object|int) $network The network's database row or ID.
    Required: Yes
See:
Returns:
  • (WP_Network|false) Object containing network information if found, false if not.
Defined at:
Codex:

Retrieve 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;
}