// WP CONFIG ADD TO STOP NOTIFICATIONS; define('DISALLOW_FILE_EDIT', true); define('DISALLOW_FILE_MODS', true); // WP CONFIG ADD TO STOP NOTIFICATIONS; // Disable all WordPress core updates add_filter('automatic_updater_disabled', '__return_true'); add_filter('auto_update_core', '__return_false'); add_filter('pre_site_transient_update_core', '__return_null'); add_filter('pre_site_transient_update_plugins', '__return_null'); add_filter('pre_site_transient_update_themes', '__return_null'); // Disable plugin updates remove_action('load-update-core.php', 'wp_update_plugins'); add_filter('pre_site_transient_update_plugins', '__return_null'); // Disable plugin update checks add_action('admin_init', function() { remove_action('admin_init', '_maybe_update_plugins'); remove_action('wp_update_plugins', 'wp_update_plugins'); remove_action('load-plugins.php', 'wp_update_plugins'); }); // Disable theme updates remove_action('load-update-core.php', 'wp_update_themes'); add_filter('pre_site_transient_update_themes', '__return_null'); // Disable theme update checks add_action('admin_init', function() { remove_action('admin_init', '_maybe_update_themes'); remove_action('wp_update_themes', 'wp_update_themes'); remove_action('load-themes.php', 'wp_update_themes'); }); // Disable all automatic updates add_filter('automatic_updater_disabled', '__return_true'); // Disable update notifications add_filter('admin_init', function() { remove_action('admin_notices', 'update_nag', 3); });
Preview:
downloadDownload PNG
downloadDownload JPEG
downloadDownload SVG
Tip: You can change the style, width & colours of the snippet with the inspect tool before clicking Download!
Click to optimize width for Twitter