WP_REST_Site_Health_Controller::test_loopback_requests() WordPress Method
The WP_REST_Site_Health_Controller::test_loopback_requests() method is used to test whether or not the site can communicate with itself. This is important for various features such as the WordPress Heartbeat API and for plugin and theme developers who may need to make API calls to the site.
WP_REST_Site_Health_Controller::test_loopback_requests() #
Checks that loopbacks can be performed.
Return
(array)
Source
File: wp-includes/rest-api/endpoints/class-wp-rest-site-health-controller.php
public function test_loopback_requests() { $this->load_admin_textdomain(); return $this->site_health->get_test_loopback_requests(); }
Expand full source codeCollapse full source codeView on TracView on GitHub
Changelog
Version | Description |
---|---|
5.6.0 | Introduced. |