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.

Return

````. Null. Nothing.

Usage

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

Changelog

Since 4.4.0 Introduced.

Code of WP_Network::__construct() WP 5.7

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

	$this->_set_site_name();
	$this->_set_cookie_domain();
}