WordPress at a glance
function is not described

WP_REST_Site_Health_Controller::__construct() public WP 5.6.0

Site Health controller constructor.

{} It's a method of the class: WP_REST_Site_Health_Controller{}

No Hooks.

Return

Null. Nothing.

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.

Code of WP_REST_Site_Health_Controller::__construct() WP 5.6

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

	$this->site_health = $site_health;
}