Core Function
View Source on Trac ↗ get_network()
get_network( mixed $network = null ) Retrieves network data given a network ID or network object.
Parameters 1 required
| Name / Type | Description |
|---|---|
| (WP_Network | | int | null) $network Optional. Network to retrieve. Default is the current network. Required |
Return Value
((WP_Network)
| null) The network object or null if not found.
Function Information
Since Version
4.6.0
Source File
wp-includes/ms-network.php
Advertisement