W3cubDocs

/WordPress

WP_REST_Site_Health_Controller::test_dotorg_communication(): array

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

Return

array

Source

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

Changelog

Version Description
5.6.0 Introduced.

© 2003–2024 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/classes/WP_REST_Site_Health_Controller/test_dotorg_communication