Core Class
View Source on Trac ↗
Core Class
WP_REST_Site_Health_Controller
class WP_REST_Site_Health_Controller
// Constructor: function Object() { [native code] } Core class for interacting with Site Health tests.
Methods 12 methods
| Method / Return | Description |
|---|---|
| __construct() void | Site Health controller constructor.
Parameters: $site_health: mixed |
| register_routes() void | Registers API routes. |
| validate_request_permission() bool | Validates if the current user can request this REST endpoint.
Parameters: $check: mixed |
| test_background_updates() array | Checks if background updates work as expected. |
| test_dotorg_communication() array | Checks that the site can reach the WordPress.org API. |
| test_loopback_requests() array | Checks that loopbacks can be performed. |
| test_https_status() array | Checks that the site's frontend can be accessed over HTTPS. |
| test_authorization_header() array | Checks that the authorization header is valid. |
| test_page_cache() array | Checks that full page cache is active. |
| get_directory_sizes() (array | Gets the current directory sizes for this install. |
| load_admin_textdomain() void | Loads the admin textdomain for Site Health tests. |
| get_item_schema() array | Gets the schema for each site health test. |
Properties
| Property / Type | Description |
|---|---|
| $site_health mixed public | No description available. |
Class Information
Since Version
5.6.0
Source File
wp-includes/rest-api/endpoints/class-wp-rest-site-health-controller.php
Advertisement