Turn Off Updates Nag And Notifications In WordPress

October 23, 2015   /   by Peter Johnson  / Categories :  Snippets

When creating a WordPress site for a client it maybe needed to turn off the update / upgrade notifications in the admin panel avoiding potential problems with updating plugin’s and the WordPress Core.

Example Reasons to do this

  1. The current theme may not be compatible with a later version of WordPress.
  2. Some old plugin’s may stop working.
  3. You have custom coded / hacked some plugin’s and updating will overwrite the changes (Better not to do this but sometimes it is needed).

To do this we can add a snippet to the Functions.php file.

add_filter( 'pre_site_transient_update_core', create_function( '$a', "return null;" ) );
add_filter( 'site_transient_update_plugins', array( $this, 'remove_update_nag' ) );

0 comments

Leave a reply