Warning: This function has been deprecated. Use get_network() instead.

wp_get_network( object|int $network )

Retrieve an object containing information about the requested network.

Description Description

See also See also

Top ↑

Parameters Parameters


(object|int) (Required) The network's database row or ID.

Top ↑

Return Return

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

Top ↑

Source Source

File: wp-includes/ms-load.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;

Top ↑

Changelog Changelog

Version Description
4.7.0 Use get_network()
3.9.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.