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.

Retrieves 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

Changelog

Since 3.9.0 Introduced.
Deprecated since 4.7.0 Use get_network()

wp_get_network() code WP 6.5.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;
}