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:

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.

Related Functions

get_networks, wp_get_network, upgrade_network, get_network_option, get_ancestors

Top Google Results

User discussions

wpseek mobile