[ Index ]

PHP Cross Reference of WordPress




/wp-includes/rest-api/endpoints/ -> class-wp-rest-site-health-controller.php (summary)

REST API: WP_REST_Site_Health_Controller class

File Size: 376 lines (9 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

WP_REST_Site_Health_Controller:: (11 methods):

Class: WP_REST_Site_Health_Controller  - X-Ref

Core class for interacting with Site Health tests.

__construct( $site_health )   X-Ref
Site Health controller constructor.

param: WP_Site_Health $site_health An instance of the site health class.
since: 5.6.0

register_routes()   X-Ref
Registers API routes.

since: 5.6.0

validate_request_permission( $check )   X-Ref
Validates if the current user can request this REST endpoint.

param: string $check The endpoint check being ran.
since: 5.6.0
return: bool

test_background_updates()   X-Ref
Checks if background updates work as expected.

since: 5.6.0
return: array

test_dotorg_communication()   X-Ref
Checks that the site can reach the WordPress.org API.

since: 5.6.0
return: array

test_loopback_requests()   X-Ref
Checks that loopbacks can be performed.

since: 5.6.0
return: array

test_https_status()   X-Ref
Checks that the site's frontend can be accessed over HTTPS.

since: 5.7.0
return: array

test_authorization_header()   X-Ref
Checks that the authorization header is valid.

since: 5.6.0
return: array

get_directory_sizes()   X-Ref
Gets the current directory sizes for this install.

since: 5.6.0
return: array|WP_Error

load_admin_textdomain()   X-Ref
Loads the admin textdomain for Site Health tests.

The {@see WP_Site_Health} class is defined in WP-Admin, while the REST API operates in a front-end context.
This means that the translations for Site Health won't be loaded by default in {@see load_default_textdomain()}.

since: 5.6.0

get_item_schema()   X-Ref
Gets the schema for each site health test.

since: 5.6.0
return: array The test schema.

Generated: Sat May 15 01:00:05 2021 Cross-referenced by PHPXref 0.7.1