Edvin Cekani
Edvin Cekani
Software Developer
Edvin Cekani

Blog

Wordpress disable automatic update

Wordpress disable automatic update

What if you don’t want to use a plugin? You can disable automatic updates in WordPress by adding this line of code in your wp-config.php file:

1

  define( '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, 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:

1

  add_filter( 'auto_update_plugin', '__return_false' );

Disable automatic WordPress theme updates:

1

  add_filter( 'auto_update_theme', '__return_false' );

Free Web Hosting