WordPress at a glance
function is not described

WP_Network::__construct() public WP 4.4.0

Create a new WP_Network object.

Will populate object properties from the object provided and assign other default properties based on that information.

{} It's a method of the class: WP_Network{}

No Hooks.


````. Null. Nothing.


$WP_Network = new WP_Network();
$WP_Network->__construct( $network );
$network(WP_Network|object) (required)
A network object.


Since 4.4.0 Introduced.

Code of WP_Network::__construct() WP 5.7

public function __construct( $network ) {
	foreach ( get_object_vars( $network ) as $key => $value ) {
		$this->$key = $value;