WP_REST_Site_Health_Controller::__construct()publicWP 5.6.0

Site Health controller constructor.

{} Это метод класса: WP_REST_Site_Health_Controller{}

Хуков нет.

Возвращает

null. Ничего.

Использование

$WP_REST_Site_Health_Controller = new WP_REST_Site_Health_Controller();
$WP_REST_Site_Health_Controller->__construct( $site_health );
$site_health(WP_Site_Health) (обязательный)
An instance of the site health class.

Список изменений

С версии 5.6.0 Введена.

Код WP_REST_Site_Health_Controller::__construct() WP 6.1.1

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

	$this->site_health = $site_health;
}