WP_Site_Health::get_instance
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.
Returns
WP_Site_Health|null.
Usage
$result = WP_Site_Health::get_instance();
Changelog
| Since 5.4.0 | Introduced. |
WP_Site_Health::get_instance() WP Site Health::get instance code WP 7.0
public static function get_instance() {
if ( null === self::$instance ) {
self::$instance = new WP_Site_Health();
}
return self::$instance;
}