WP_REST_Site_Health_Controller::test_authorization_header
Checks that the authorization header is valid.
Method of the class: WP_REST_Site_Health_Controller{}
No Hooks.
Returns
Array.
Usage
$WP_REST_Site_Health_Controller = new WP_REST_Site_Health_Controller(); $WP_REST_Site_Health_Controller->test_authorization_header();
Changelog
| Since 5.6.0 | Introduced. |
WP_REST_Site_Health_Controller::test_authorization_header() WP REST Site Health Controller::test authorization header code WP 6.8.3
public function test_authorization_header() {
$this->load_admin_textdomain();
return $this->site_health->get_test_authorization_header();
}