WP_REST_Site_Health_Controller::__construct( WP_Site_Health $site_health )

In this article

Site Health controller constructor.

Parameters

$site_healthWP_Site_Healthrequired
An instance of the site health class.

Source

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

	$this->site_health = $site_health;
}

Changelog

VersionDescription
5.6.0Introduced.

User Contributed Notes

You must log in before being able to contribute a note or feedback.