W3cubDocs

/WordPress

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_capabilitystring
The default capability required for this check.
$checkstring
The Site Health check being performed.

Source

$capability = apply_filters( "site_health_test_rest_capability_{$check}", $default_capability, $check );

Changelog

Version Description
5.6.0 Introduced.

© 2003–2024 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/site_health_test_rest_capability_check