Disable WordPress Core, Plugin and Theme Updates

To stop automatic updates in WordPress, you can approach it in a few different ways depending on what specifically you want to prevent from updating automatically (WordPress core, plugins, themes). Here’s how to manage each type:

1. Disable All Automatic Updates

To completely disable all types of automatic updates, core, plugins, and themes, add the following line of code to your wp-config.php file:


2. Disable Core Updates

WordPress core updates can be specifically controlled. To disable all core updates, including minor and major, add the following to your wp-config.php file:

define( 'WP_AUTO_UPDATE_CORE', false );

3. Disable Theme and Plugin Updates

Disabling automatic updates for themes and plugins can’t be done directly through the wp-config.php file but can be managed through filters in your theme’s functions.php file or a site-specific plugin.

Disable Plugin Updates:

add_filter( 'auto_update_plugin', '__return_false' );

Disable Theme Updates:

add_filter( 'auto_update_theme', '__return_false' );