wp-includes/class-wp-site.php:27Core class used for interacting with a multisite site.
Every hook that fires from inside WP_Site, in the order it appears in the class, grouped by the method that fires it.
$blog_idstringpublic$domainstringpublic$pathstringpublic$site_idstringpublic$registeredstringpublic$last_updatedstringpublic$publicstringpublic$archivedstringpublic$maturestringpublic$spamstringpublic$deletedstringpublic$lang_idstringpublic#[AllowDynamicProperties]final class WP_Site { /** * Site ID. * * Named "blog" vs. "site" for legacy reasons. * * A numeric string, for compatibility reasons. * * @since 4.5.0 * @var string * @phpstan-var numeric-string */ public $blog_id; /** * Domain of the site. * * @since 4.5.0 * @var string */ public $domain = ''; /** * Path of the site. * * @since 4.5.0 * @var string */ public $path = ''; /** * The ID of the site's parent network. * * Named "site" vs. "network" for legacy reasons. An individual site's "site" is * its network. * * A numeric string, for compatibility reasons. * * @since 4.5.0 * @var string * @phpstan-var numeric-string */ public $site_id = '0'; /** * The date and time on which the site was created or registered. * * @since 4.5.0 * @var string Date in MySQL's datetime format. */ public $registered = '0000-00-00 00:00:00'; /** * The date and time on which site settings were last updated. * * @since 4.5.0 * @var string Date in MySQL's datetime format. */ public $last_updated = '0000-00-00 00:00:00'; /** * Whether the site should be treated as public. * * A numeric string, for compatibility reasons. * * @since 4.5.0 * @var string * @phpstan-var numeric-string */ public $public = '1'; /** * Whether the site should be treated as archived. * * A numeric string, for compatibility reasons. * * @since 4.5.0 * @var stringIntroduced in 4.5.0. Unchanged from 6.7.7 through 7.1.0.
Signature, return type and hooks compared across 5 parsed releases.
src/wp-includes/class-wp-site.php, and regenerated for each WordPress release so it tracks the code rather than a snapshot of it.