WP_Site::__construct

SummerySummery

Creates a new WP_Site object.

Syntax

WP_Site::__construct( WP_Site|object $site )

DescriptionDescription

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

ParametersParameters

$site

(WP_Site|object) (Required) A site object.

SourceSource

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


			

ChangelogChangelog

Changelog
Version Description
4.5.0 Introduced.
Scroll to Top