WP_Site::get_instance

SummerySummery

Retrieves a site from the database by its ID.

Syntax

WP_Site::get_instance( int $site_id )

ParametersParameters

$site_id

(int) (Required) The ID of the site to retrieve.

ReturnReturn

(WP_Site|false) The site's object if found. False if not.

SourceSource

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


			

ChangelogChangelog

Changelog
Version Description
4.5.0 Introduced.
Scroll to Top