WordPress at a glance
filter is not described

site_health_test_rest_capability_(check) filter-hook . WP 5.6.0

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

Usage

add_filter( 'site_health_test_rest_capability_(check)', 'filter_function_name_2385', 10, 2 );
function filter_function_name_2385( $default_capability, $check ){
	// filter...

	return $default_capability;
}
$default_capability(string)
The default capability required for this check.
$check(string)
The Site Health check being performed.

Changelog

Since 5.6.0 Introduced.

Where the hook is called

WP_REST_Site_Health_Controller::validate_request_permission()
site_health_test_rest_capability_(check)
wp-includes/rest-api/endpoints/class-wp-rest-site-health-controller.php 161
$capability = apply_filters( "site_health_test_rest_capability_{$check}", $default_capability, $check );

Where in WP core the hook is used WordPress

Usage not found.