WordPress at Your Fingertips
function is not described

WP_Site_Health::get_instance() public WP 5.4.0

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

{} It's a 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.

Code of WP_Site_Health::get_instance() WP 5.8.2

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

	return self::$instance;
}