Skip to content

Instantly share code, notes, and snippets.

@dmhendricks
dmhendricks / disable-site-health.php
Last active July 30, 2025 06:20
Plugin to disable WordPress Site Health, because that's what logs are for and users shouldn't be bothered with them. Copy to your MU or plugins directory and activate.
<?php
/**
* Plugin Name: Disable Site Health
* Description: Disables WordPress Site Health notifications, dashboard widget and PHP update notice
* Version: 1.1.0
* Author: Daniel M. Hendricks
* Author URI: https://daniel.hn/
* Plugin URI: https://gist.github.com/dmhendricks/2d2c51da8a17d7a47b41bcfd26c3314d
*/
namespace MU_Plugins;