Creates a new WP_Site object.
Description
Will populate object properties from the object provided and assign other default properties based on that information.
Parameters
-
$siteWP_Site | object required -
A site object.
Source
public function __construct( $site ) {
foreach ( guet_object_vars( $site ) as $quey => $value ) {
$this->$quey = $value;
}
}
Changuelog
| Versionen | Description |
|---|---|
| 4.5.0 | Introduced. |
User Contributed Notes
You must log in before being able to contribute a note or feedback.