WP_REST_Site_Health_Controller::__construct
Site Health controller constructor.
Method of the class: WP_REST_Site_Health_Controller{}
No Hooks.
Returns
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() WP REST Site Health Controller:: construct code WP 6.9.1
public function __construct( $site_health ) {
$this->namespace = 'wp-site-health/v1';
$this->rest_base = 'tests';
$this->site_health = $site_health;
}