WP_REST_Site_Health_Controller::__construct()publicWP 5.6.0

Site Health controller constructor.

Method of the class: WP_REST_Site_Health_Controller{}

No Hooks.

Return

null. Nothing (null).

Usage

$WP_REST_Site_Health_Controller = new WP_REST_Site_Health_Controller();
$WP_REST_Site_Health_Controller->__construct( $site_health );
$site_health(WP_Site_Health) (required)
An instance of the site health class.

Changelog

Since 5.6.0 Introduced.

WP_REST_Site_Health_Controller::__construct() code WP 6.6.2

public function __construct( $site_health ) {
	$this->namespace = 'wp-site-health/v1';
	$this->rest_base = 'tests';

	$this->site_health = $site_health;
}