WP_REST_Site_Health_Controller::__construct
Site Health controller constructor.
Метод класса: WP_REST_Site_Health_Controller{}
Хуков нет.
Возвращает
null. Ничего (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 REST Site Health Controller:: construct WP 6.9
public function __construct( $site_health ) {
$this->namespace = 'wp-site-health/v1';
$this->rest_base = 'tests';
$this->site_health = $site_health;
}