W3cubDocs

/WordPress

WP_Site_Health::__construct()

WP_Site_Health constructor.

Description

Source

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

public function __construct() {
		$this->prepare_sql_data();

		add_filter( 'admin_body_class', array( $this, 'admin_body_class' ) );

		add_action( 'admin_enqueue_scripts', array( $this, 'enqueue_scripts' ) );
	}

Changelog

Version Description
5.2.0 Introduced.

© 2003–2019 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/classes/wp_site_health/__construct