WP_REST_Site_Health_Controller::test_authorization_header() WordPress Method
The WP_REST_Site_Health_Controller::test_authorization_header() method is used to check if the WordPress site is correctly configured to use the Authorization header for REST API requests. This is a required setting for the WordPress REST API.
WP_REST_Site_Health_Controller::test_authorization_header() #
Checks that the authorization header is valid.
Return
(array)
Source
File: wp-includes/rest-api/endpoints/class-wp-rest-site-health-controller.php
public function test_authorization_header() { $this->load_admin_textdomain(); return $this->site_health->get_test_authorization_header(); }
Expand full source codeCollapse full source codeView on TracView on GitHub
Changelog
Version | Description |
---|---|
5.6.0 | Introduced. |