WPDev.one
Core Class

WP_Site

class WP_Site // Constructor: function Object() { [native code] }

Core class used for interacting with a multisite site.

Methods 7 methods

Method / Return Description
get_instance()
(WP_Site

Retrieves a site from the database by its ID.

Parameters: $site_id: mixed
__construct()
void

Creates a new WP_Site object.

Parameters: $site: mixed
to_array()
array

Converts an object to array.

__get()
mixed

Getter.

Parameters: $key: mixed
__isset()
bool

Isset-er.

Parameters: $key: mixed
__set()
void

Setter.

Parameters: $key: mixed, $value: mixed
get_details()
stdClass

Retrieves the details for this site.

Properties

Property / Type Description
$blog_id
mixed
public
No description available.
$domain
mixed
public
No description available.
$path
mixed
public
No description available.
$site_id
mixed
public
No description available.
$registered
mixed
public
No description available.
$last_updated
mixed
public
No description available.
$public
mixed
public
No description available.
$archived
mixed
public
No description available.
$mature
mixed
public
No description available.
$spam
mixed
public
No description available.
$deleted
mixed
public
No description available.
$lang_id
mixed
public
No description available.

Class Information

Since Version
4.5.0
Source File
wp-includes/class-wp-site.php
Advertisement