WP_Network::__construct()publicWP 4.4.0

Creates a new WP_Network object.

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

Метод класса: WP_Network{}

Хуков нет.


null. Ничего (null).


$WP_Network = new WP_Network();
$WP_Network->__construct( $network );
$network(WP_Network|объект) (обязательный)
A network object.

Список изменений

С версии 4.4.0 Введена.

Код WP_Network::__construct() WP 6.4.1

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