WP Manifestindependent plugin directory
manifest / developer / bedrock-site-health-tests

Bedrock Site Health Tests

Customizes WordPress Site Health status tests that conflict with Bedrock by Roots.

★ 0stars

Install

Download source zip No release zip yet

This is the repository archive. It installs, but the folder name will carry the branch suffix and updates will not flow.

Install straight from GitHub with WP-CLI:

wp plugin install https://github.com/wp-jazz/bedrock-site-health-tests/archive/refs/heads/main.zip
No built-in updater. New versions won't appear under Dashboard → Updates. Install new releases yourself, or let Git Updater track the repository.

WordPress Plugin: Bedrock Site Health Tests

This plugin overrides the WordPress Site Health status tests that conflict with Roots' Bedrock.

Specifically, the "Background updates" test will indicate the Web site is under version control and updates are managed by Composer.

Cropped screen capture of the WordPress Site Health Status page showing the customized Background updates test result

This plugin was originally proposed as a core feature of Bedrock.

Requirements

Installation

Require this package, with Composer, from the root directory of your project.

composer require wp-jazz/bedrock-site-health-tests

If your project uses [composer/installers], the package should install as a must-use plugin.

If the package is installed as a regular plugin, activate the package via WP-CLI or the WordPress administration dashboard:

wp plugin activate jazz-bedrock-site-health-tests

If the package is installed into Composer's vendor directory, activate the package via a must-use plugin file or from a file that has access to the WordPress hooks system.

require_once __DIR__ . '/vendor/wp-jazz/bedrock-site-health-tests/includes/namespace.php';

Jazz\Bedrock\SiteHealthTests\bootstrap();

Usage

The plugin hooks into the rest_post_dispatch and site_status_test_result filters to override the test result:

add_filter( 'rest_post_dispatch',      'Jazz\\Bedrock\\SiteHealthTests\\filter_rest_post_dispatch' );
add_filter( 'site_status_test_result', 'Jazz\\Bedrock\\SiteHealthTests\\filter_site_status_test_result' );

🎷