WP_REST_Site_Health_Controller::test_dotorg_communication()publicWP 5.6.0

Checks that the site can reach the WordPress.org API.

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_dotorg_communication();

Changelog

Since 5.6.0 Introduced.

WP_REST_Site_Health_Controller::test_dotorg_communication() code WP 6.5.2

public function test_dotorg_communication() {
	$this->load_admin_textdomain();
	return $this->site_health->get_test_dotorg_communication();
}