If you’re in charge of maintaining a church, ministry or client website, you know how frustrating it can be for someone who has administrative permission to update plugins.
Normally, this isn’t a problem, but sometimes this can lead to a broken site. I’ve had modded plugins updated, before, so you can image my relief when I found I had a backup. Modded plugin update = plugin modification gone!
Another situation arose when a non-profit contacted me with some web issues. Their website was broken. The reason? Plugin updates.
There are obviously a number of good reasons to prevent WordPress form checking if your plugins need updating. I would first try using a user role editor or some other work around to avoid misguided plugin updates, as plugin update notifications are by nature a good idea.
However, there’s always an exception, especially if you have multiple site Admins.
How-To Disable WordPress Plugin Updates
This snippet simply prevents WordPress from checking if there’s any updates for your plugins.
This could be useful if you’re creating a website for a client, and don’t want them to update their plugins incase you have changed the code in it, or if you’re worried that the update will break the site.
Simply add this to your theme’s functions.php, or better yet, create your own functionality plugin so you can easily toggle this on and off.
remove_action( 'load-update-core.php', 'wp_update_plugins' );
add_filter( 'pre_site_transient_update_plugins', create_function( '$a', "return null;" ) );
[via WP Snippets]