Disable Update Notifications in WordPress Admin

,
Sometimes WordPress Update Notifications are annoying, they usually show up in red circles or a notice message on the header part of your Admin Panel. They usually do not disappear not until your click the update button, annoying? – Let’s fix that.

The use of the bellow codes is not advisable as it prevents maintenance on plugins, themes, and core codes of WordPress therefore making your website vulnerable to hackers.

Disable Plugin Notifications:

remove_action('load-update-core.php','wp_update_plugins');
add_filter('pre_site_transient_update_plugins','__return_null');

Disable all WordPress Notifications(Core, Themes and Plugins):

function cvf_remove_wp_core_updates(){
global $wp_version;
return(object) array('last_checked' => time(),'version_checked' => $wp_version);
}

// Core Notifications
add_filter('pre_site_transient_update_core','cvf_remove_wp_core_updates');
// Plugin Notifications
add_filter('pre_site_transient_update_plugins','cvf_remove_wp_core_updates');
// Theme Notifications
add_filter('pre_site_transient_update_themes','cvf_remove_wp_core_updates');

To completely disable all types of automatic updates, core or otherwise, add the following to your wp-config.php file:

define( 'AUTOMATIC_UPDATER_DISABLED', true );




Related Post


Latest Post


Recent Posts Widget

Make sure to never miss a thing...

Get the latest news from the creative industry along with other creative goodies, conveniently delivered to social media.