Are you get annoying from update notification WordPress? If you are a developer for client you may want to hide it. In this post I will show you how to disable update notification and maintenance nag. No more annoying icons or notices on your screen.
Disable all plugin update notifications:
Copy the code below to your theme’s function.php:
[php]
remove_action(‘load-update-core.php’,’wp_update_plugins’);
add_filter(‘pre_site_transient_update_plugins’,’__return_null’);
[/php]
Disable Specific plugin update notifications:
Copy the code below to your theme’s function.php: below is the example of disable update notification of akismetm plugin.
[php]
/* Function which remove Plugin Update Notices – Askimet*/
function disable_plugin_updates( $value ) {
unset( $value->response[‘akismet/akismet.php’] );
return $value;
}
add_filter( ‘site_transient_update_plugins’, ‘disable_plugin_updates’ );
[/php]
Disable all Nags & Notifications:
Copy the code below to your theme’s function.php: Code credit WpOptimus
[php]
function remove_core_updates(){
global $wp_version;return(object) array(‘last_checked’=> time(),’version_checked’=> $wp_version,);
}
add_filter(‘pre_site_transient_update_core’,’remove_core_updates’);
add_filter(‘pre_site_transient_update_plugins’,’remove_core_updates’);
add_filter(‘pre_site_transient_update_themes’,’remove_core_updates’);
[/php]
Comments