WP_Network::__construct

Advertisement

Summery Summery

Create a new WP_Network object.

Syntax Syntax

WP_Network::__construct( WP_Network|object $network )

Description Description

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

Parameters Parameters

$network

(Required) A network object.

Source Source

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

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

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

Advertisement

Changelog Changelog

Changelog
Version Description
4.4.0 Introduced.

Advertisement

Leave a Reply