wppaste
WordPress

WP_Network::__construct( WP_Network|object $network )

Since
4.4.0
Source
wp-includes/class-wp-network.php:132
Creates a new WP_Network object.

Description

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

Parameters

$networkWP_Network|object
A network object.

Uses · 3

Used by · 2

Source

	public function __construct( $network ) {		foreach ( get_object_vars( $network ) as $key => $value ) {			$this->__set( $key, $value );		} 		$this->_set_site_name();		$this->_set_cookie_domain();	}

History

Introduced in 4.4.0. Unchanged from 6.7.7 through 7.1.0.

  1. 6.7.7
  2. 6.8.8
  3. 6.9.7
  4. 7.0.4
  5. 7.1.0

Signature, return type and hooks compared across 5 parsed releases.

About this page

Parsed data
Generated from the wordpress-develop 6.9.7 tag, from src/wp-includes/class-wp-network.php, and regenerated for each WordPress release so it tracks the code rather than a snapshot of it.
Corrections
Something wrong on this page? Report it and it gets fixed in the next regeneration.