Turn Off Updates Nag And Notifications In WordPress
October 23, 2015 / by Peter Johnson / Categories : SnippetsWhen 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
- The current theme may not be compatible with a later version of WordPress.
- Some old plugin’s may stop working.
- 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