On this page
wp_get_network( object|int $network ): WP_Network|false
This function has been deprecated. Use get_network() instead.
Retrieves an object containing information about the requested network.
Description
See also
Parameters
$networkobject|int Required-
The network's database row or ID.
Return
WP_Network|false Object containing network information if found, false if not.
Source
File: wp-includes/ms-load.php. View all references
function wp_get_network( $network ) {
_deprecated_function( __FUNCTION__, '4.7.0', 'get_network()' );
$network = get_network( $network );
if ( null === $network ) {
return false;
}
return $network;
}
Related
Uses
| Uses | Description |
|---|---|
| get_network() wp-includes/ms-network.php | Retrieves network data given a network ID or network object. |
| _deprecated_function() wp-includes/functions.php | Marks a function as deprecated and inform when it has been used. |
Changelog
| Version | Description |
|---|---|
| 4.7.0 | Use get_network() |
| 3.9.0 | Introduced. |
© 2003–2022 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/functions/wp_get_network