Wednesday 8 March 2017

How to Disable Automatic Updates 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.
However 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 or in a site-specific plugin.
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 that you know how to disable automatic updates in WordPress, the question is should you disable it?

No comments:

Post a Comment