site_health_test_rest_capability_{$check} WordPress Filter Hook

The site_health_test_rest_capability_{$check} hook is used to check if a site has the REST API capability. This hook is used by the Site Health tool in WordPress. It is used to check if a site has the REST API capability. This check is important because the REST API is required for many features in WordPress, including the block editor.

apply_filters( "site_health_test_rest_capability_{$check}", string $default_capability, string $check ) #

Filters the capability needed to run a given Site Health check.


Parameters

$default_capability

(string)The default capability required for this check.

$check

(string)The Site Health check being performed.


Top ↑

Source

File: wp-includes/rest-api/endpoints/class-wp-rest-site-health-controller.php

View on Trac



Top ↑

Changelog

Changelog
VersionDescription
5.6.0Introduced.

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.