Not a fan of the notice too. For anyone looking for a solution, you can disable the health check by adding
add_filter('site_status_tests', function ($tests) {
unset($tests['direct']['cookie_compliance_status']);
return $tests;
});
directly into your functions.php
. (You can get a list of all the health checks using WP_Site_Health::get_tests()
if you want to remove other ones too.)
You can also try this plugin: https://wordpress.org/plugins/site-health-tool-manager/ it seems to be working fine but it wasn’t updated in a while so your mileage may vary.
+1. It pisses me off that plugins use “Site Health”! Please remove this nonsense. (If you don’t want to remove it completely, you can at least move it to the recommendation area)
Please mention these changes in the changelog moving forward. You’d be forgiven for thinking that a minor version bump (and the two items listed against it) wouldn’t result in all our clients being notified that they have “critical issues” with their websites.
I ended up removing this plugin on all our sites in the end.
Hi guys,
thanks for heads up. To anyone who’s interested, I now use following code to remove dashboard functionality completely (incl. dashboard widget for upsell of Pro version):
add_action('init', function () {
if (function_exists('Cookie_Notice') && ($dashboard = Cookie_Notice()->dashboard ?? null)) {
remove_action('wp_dashboard_setup', [$dashboard, 'wp_dashboard_setup'], 11);
remove_action('admin_enqueue_scripts', [$dashboard, 'admin_scripts_styles'], 10);
remove_filter('site_status_tests', [$dashboard, 'add_tests'], 10);
}
});
I second the opinion that such changes should be mentioned in the changelog…
Such a spammy move.
I’ll be removing the plugin from all websites.