Filters which site status tests are run on a site.
The site health is determined by a set of tests based on best practices from both the WordPress Hosting Team and web standards in general.
Some sites may not have the same requirements, for example the automatic update checks may be handled by a host, and are therefore disabled in core.
Or maybe you want to introduce a new test, is caching enabled/disabled/stale for example.
Tests may be added either as direct, or asynchronous ones. Any test that may require some time to complete should run asynchronously, to avoid extended loading periods within wp-admin.
$testsarray[]
direct array[]...$identifier array$identifier should be a unique identifier for the test. Plugins and themes are encouraged to prefix test identifiers with their slug to avoid collisions between tests.label stringtest callableskip_cron boolasync array[]...$identifier array$identifier should be a unique identifier for the test. Plugins and themes are encouraged to prefix test identifiers with their slug to avoid collisions between tests.label stringtest string$has_rest is true, a URL to a REST API endpoint to perform the test.has_rest bool$test property points to a REST API endpoint.skip_cron boolasync_direct_test callable$tests = apply_filters( 'site_status_tests', $tests );
You must log in before being able to contribute a note or feedback.
© 2003–2024 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/site_status_tests