WordPress at Your Fingertips
function is not described

wp_get_network() WP 3.9.0

Deprecated from version 4.7.0. It is no longer supported and can be removed in future releases. Use `get_network()` instead.

Retrieve an object containing information about the requested network.

No Hooks.


WP_Network|false. Object containing network information if found, false if not.


wp_get_network( $network );
$network(object|int) (required)
The network's database row or ID.



Since 3.9.0 Introduced.
Deprecated Since 4.7.0 Use get_network()

Code of wp_get_network() WP 5.8.2

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

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

	return $network;