get_network

SummerySummery

Retrieves network data given a network ID or network object.

Syntax

get_network( WP_Network|int|null $network = null )

DescriptionDescription

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.

ParametersParameters

$network

(WP_Network|int|null) (Optional) Network to retrieve. Default is the current network.

Default value: null

ReturnReturn

(WP_Network|null) The network object or null if not found.

SourceSource

File: wp-includes/ms-network.php


			

ChangelogChangelog

Changelog
Version Description
4.6.0 Introduced.
Scroll to Top