WordPress at Your Fingertips
function is not described

WP_REST_Site_Health_Controller::test_https_status() public WP 5.7.0

Checks that the site's frontend can be accessed over HTTPS.

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

No Hooks.

Return

Array.

Usage

$WP_REST_Site_Health_Controller = new WP_REST_Site_Health_Controller();
$WP_REST_Site_Health_Controller->test_https_status();

Changelog

Since 5.7.0 Introduced.

Code of WP_REST_Site_Health_Controller::test_https_status() WP 5.7.2

<?php
public function test_https_status() {
	$this->load_admin_textdomain();
	return $this->site_health->get_test_https_status();
}