How to disable plugin update's in Wordpress. - WPTRINITY

How to disable plugin update’s in WordPress.

You can disable automatic updates in WordPress by adding this line of code in your wp-config.php file:

1define( 'WP_AUTO_UPDATE_CORE', false );

This will disable all automatic WordPress updates.

if you want to receive minor core updates, but disable theme and plugin updates, then you can do so by adding the following filters in your theme’s functions.php file.

Disable automatic WordPress plugin updates:

1add_filter( 'auto_update_plugin', '__return_false' );

Disable automatic WordPress theme updates:

1add_filter( 'auto_update_theme', '__return_false' );

Now we have disabled automatic plugin and theme updates while keeping the minor core updates enabled.

We are listing the pros and cons of automatic updates below to help you make the decision that’s best for you.

Pros

You don’t have to worry about updating minor WordPress releases which are pushed out for maintenance and security purposes.

You also have the benefit of knowing that if there was a crucial security issue with WordPress or a popular plugin, then WordPress will automatically update even if you are on a vacation, so your site is secure.

Cons

There is a slight chance that automatic updates can break your site. In our experience, the minor releases haven’t broken any of our sites yet.

But that’s because we are following the best practices and not modifying any core files. If you modify WordPress core files, then these automatic updates can override them.

Leave a Comment

Your email address will not be published. Required fields are marked *