Uses
Uses | Description |
---|---|
wp-admin/includes/class-wp-site-health.php: WP_Site_Health::__construct() | WP_Site_Health constructor. |
Return an instance of the WP_Site_Health class, or create one if none exist yet.
(WP_Site_Health|null)
File: wp-admin/includes/class-wp-site-health.php
public static function get_instance() { if ( null === self::$instance ) { self::$instance = new WP_Site_Health(); } return self::$instance; }
Version | Description |
---|---|
5.4.0 | Introduced. |
© 2003–2019 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/classes/wp_site_health/get_instance