WordPress at a glance
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.

Return

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

Usage

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

Notes

  • See: get_network()

Changelog

Since 3.9.0 Introduced.
Deprecated Since 4.7.0 Use get_network()

Code of wp_get_network() WP 5.7

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

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

	return $network;
}