WP_Site_Health::get_instance()public staticWP 5.4.0

Returns an instance of the WP_Site_Health class, or create one if none exist yet.

Method of the class: WP_Site_Health{}

No Hooks.

Return

WP_Site_Health|null.

Usage

$result = WP_Site_Health::get_instance();

Changelog

Since 5.4.0 Introduced.

WP_Site_Health::get_instance() code WP 6.6.2

public static function get_instance() {
	if ( null === self::$instance ) {
		self::$instance = new WP_Site_Health();
	}

	return self::$instance;
}