Do not disable plugin updates. If you ask us, the first sentence would be all you should read. Updates are there for a good reason – they will make your plugins better by adding extra functionalities, they will fix bugs and make plugins run faster and better and last, but definitely not least, updates will patch up your site and make it even safer.
But hey, sometimes your customers will require a certain version of plugins, or you will want to prevent your users from being able to update plugins. No matter what’s your reason for not updating, we will show you how to do that.
Like with almost everything in WordPress, you can do stuff manually, or you can reach out for a plugin’s help. In this article, we will show you how to achieve the same thing both ways.
Disable plugin updates manually:
- Open functions.php file
- Copy and paste the following code:
- Save changes, and you’re done
remove_action( 'load-update-core.php', 'wp_update_plugins' ); add_filter( 'pre_site_transient_update_plugins', create_function( '$a', "return null;" ) );
Block Plugin Update
Instead of manually disabling the updates, this plugin will do the job for you:
- Go to Plugins->Add New
- Search for “Block Plugin Update”
- Install and activate it
- Navigate to Settings->Block Plugin Update
- Save changes
Here you will have a list of installed plugins. Simply place a check in the checkbox next to plugin for which you want to disable updates.
In some cases, you will have to log out and log in again in order for changes to take effect so do that to be sure the plugin will do its job correctly.
There you go. No matter which method have you chosen, you have an easy way of disabling plugin updates. Again, we advise not to disable the updates so be sure there are really good reasons behind it before you stop updating.