WP_Network::get_instance

SummerySummery

Retrieve a network from the database by its ID.

Syntax

WP_Network::get_instance( int $network_id )

ParametersParameters

$network_id

(int) (Required) The ID of the network to retrieve.

ReturnReturn

(WP_Network|bool) The network's object if found. False if not.

SourceSource

File: wp-includes/class-wp-network.php


			

ChangelogChangelog

Changelog
Version Description
4.4.0 Introduced.
Scroll to Top