wp_get_network()WP 3.9.0

Deprecated since 4.7.0. It is no longer supported and may be removed in future releases. Use get_network() instead.

Retrieves an object containing information about the requested network.

{@internal In 4.6.0, converted to use get_network()}

No Hooks.

Returns

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

Changelog

Since 3.9.0 Introduced.
Deprecated since 4.7.0 Use get_network()

wp_get_network() code WP 6.9.1

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

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

	return $network;
}