WP_Site_Health::get_instance(): WP_Site_Health|null

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


Return

WP_Site_Health|null


Top ↑

Source

File: wp-admin/includes/class-wp-site-health.php. View all references

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

	return self::$instance;
}


Top ↑

Changelog

Changelog
Version Description
5.4.0 Introduced.

Top ↑

User Contributed Notes

You must log in before being able to contribute a note or feedback.