get_network
get_network ( $network = null )
Parameters:- (WP_Network|int|null) network Optional. Network to retrieve. Default is the current network.
Returns:- (WP_Network|null) The network object or null if not found.
Defined at: - Introduced in WordPress: 4.6.0
- Deprecated in WordPress: —
Description
Retrieves network data given a network ID or network object.Network data will be cached and returned after being passed through a filter.
If the provided network is empty, the current network global will be used.