Title: WP_REST_Site_Health_Controller::test_dotorg_communication
Published: December 9, 2020
Last modified: February 24, 2026

---

# WP_REST_Site_Health_Controller::test_dotorg_communication(): array

## In this article

 * [Return](https://developer.wordpress.org/reference/classes/wp_rest_site_health_controller/test_dotorg_communication/?output_format=md#return)
 * [Source](https://developer.wordpress.org/reference/classes/wp_rest_site_health_controller/test_dotorg_communication/?output_format=md#source)
 * [Related](https://developer.wordpress.org/reference/classes/wp_rest_site_health_controller/test_dotorg_communication/?output_format=md#related)
 * [Changelog](https://developer.wordpress.org/reference/classes/wp_rest_site_health_controller/test_dotorg_communication/?output_format=md#changelog)

[ Back to top](https://developer.wordpress.org/reference/classes/wp_rest_site_health_controller/test_dotorg_communication/?output_format=md#wp--skip-link--target)

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

## 󠀁[Return](https://developer.wordpress.org/reference/classes/wp_rest_site_health_controller/test_dotorg_communication/?output_format=md#return)󠁿

 array

## 󠀁[Source](https://developer.wordpress.org/reference/classes/wp_rest_site_health_controller/test_dotorg_communication/?output_format=md#source)󠁿

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

[View all references](https://developer.wordpress.org/reference/files/wp-includes/rest-api/endpoints/class-wp-rest-site-health-controller.php/)
[View on Trac](https://core.trac.wordpress.org/browser/tags/6.9.4/src/wp-includes/rest-api/endpoints/class-wp-rest-site-health-controller.php#L223)
[View on GitHub](https://github.com/WordPress/wordpress-develop/blob/6.9.4/src/wp-includes/rest-api/endpoints/class-wp-rest-site-health-controller.php#L223-L226)

## 󠀁[Related](https://developer.wordpress.org/reference/classes/wp_rest_site_health_controller/test_dotorg_communication/?output_format=md#related)󠁿

| Uses | Description | 
| [WP_REST_Site_Health_Controller::load_admin_textdomain()](https://developer.wordpress.org/reference/classes/wp_rest_site_health_controller/load_admin_textdomain/)`wp-includes/rest-api/endpoints/class-wp-rest-site-health-controller.php` |

Loads the admin textdomain for Site Health tests.

  |

## 󠀁[Changelog](https://developer.wordpress.org/reference/classes/wp_rest_site_health_controller/test_dotorg_communication/?output_format=md#changelog)󠁿

| Version | Description | 
| [5.6.0](https://developer.wordpress.org/reference/since/5.6.0/) | Introduced. |

## User Contributed Notes

You must [log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fdeveloper.wordpress.org%2Freference%2Fclasses%2Fwp_rest_site_health_controller%2Ftest_dotorg_communication%2F)
before being able to contribute a note or feedback.