Top Navigation Menu

Turn Off Update Notices in WordPress

There are times you may want update notices turned off for the WordPress core, plugins and themes.

Reason You May Want Update Notices Turned Off

One of the most common reasons is if you manage a multi-site network. When update notices appear, they not only show up for the multi-site admin, but also show up to all of the site owners within the network. This will create a support nightmare for the network admin. The network admin can simply turn off the notices for everybody and update at their leisure.

Another common reason you may want update notices turned off is if you build WordPress websites for clients using GPL licensed software but the clients don’t have automatic access to updates. Many premium plugins are GPL licensed and can be used and distributed by anybody, but that doesn’t necessarily mean the site owners or developer will have access to future updates. This site provides GPL licensed premium plugins and themes AND we also provide updates!

Finally, often times themes are purchased with a bundle of premium plugins that have been modified to meet a particular need of that theme. If a client were to update that plugin without using the modified version, all the work that was done with the modified version will be wiped out. This would absolutely be a very bad thing to happen!

Here Are 3 Ways to Turn Off Update Notices in WordPress:

Note; the recommended method to do the following is in your child theme functions.php.

To Disable Update WordPress Core Only

Insert the following code to the functions.php file of your active theme. It will remove the WordPress update notice e.g. WordPress 4.x is available! Please update now will be removed, from the all users dashboard, admin dashboard & from Updates page as well.

add_action('after_setup_theme','remove_core_updates');  function remove_core_updates()  {   if(! current_user_can('update_core')){return;}   add_action('init', create_function('$a',"remove_action( 'init', 'wp_version_check' );"),2);   add_filter('pre_option_update_core','__return_null');   add_filter('pre_site_transient_update_core','__return_null');  }

 

To Disable Plugin Update Notifications Only

Insert the following code to the functions.php file of your active theme. It will remove the update notifications of all the installed plugins.

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

 

To Disable All the Update Notifications

Insert the following code the functions.php file of your active theme. This code disables all the updates notifications of all plugins, themes & WordPress core.

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');

(65)

No comments yet.

Leave a Reply