Configure Automatic WordPress Updates

Starting with version 3.7.0, WordPress can perform automatic updates. The automatic updates cannot be configured via the admin interface, but you can configure them by using filters or by setting some constants in the wp-config.php file.

Using the Configuration File

Disable all automatic WordPress core updates:

define( 'WP_AUTO_UPDATE_CORE', false );

Enable all automatic WordPress core updates (minor and major updates):

define( 'WP_AUTO_UPDATE_CORE', true );

Enable only minor WordPress core updates:

define( 'WP_AUTO_UPDATE_CORE', 'minor' );

Disable all automatic updates for core, plugins and themes:

define( 'AUTOMATIC_UPDATER_DISABLED', true );

Using Filters

You can also use filters to configure the automatic updates. Add the desired filter to your functions.php or a plugin:

Disable all automatic updates:

add_filter( 'automatic_updater_disabled', '__return_true' );

Enable/Disable automatic updates for developer versions (alpha, beta, release candidate):

add_filter( 'allow_dev_auto_core_updates', 'wp_control_dev_auto_updates' );
function wp_control_dev_auto_updates( $value ) {
    // true to enable, false to disable
    return true;
}

Enable/Disable automatic updates for minor releases (e.g. 3.7.1, 3.7.2):

add_filter( 'allow_minor_auto_core_updates', 'wp_control_minor_auto_updates' );
function wp_control_minor_auto_updates( $value ) {
    // true to enable, false to disable
    return true;
}

Enable/Disable automatic updates for major releases (e.g. 3.7, 3.8):

add_filter( 'allow_major_auto_core_updates', 'wp_control_major_auto_updates' );
function wp_control_major_auto_updates( $value ) {
    // true to enable, false to disable
    return true;
}

Enable/Disable automatic updates for themes:

add_filter( 'auto_update_theme', 'wp_control_theme_auto_updates' );
function function wp_control_theme_auto_updates( $value ) {
    // true to enable, false to disable
    return true;
}

Enable/Disable automatic updates for plugins:

add_filter( 'auto_update_plugin', 'wp_control_plugin_auto_updates' );
function function wp_control_plugin_auto_updates( $value ) {
    // true to enable, false to disable
    return true;
}

Enable/Disable automatic updates for translations:

add_filter( 'auto_update_translation', 'wp_control_translation_auto_updates' );
function function wp_control_translation_auto_updates( $value ) {
    // true to enable, false to disable
    return true;
}

6 thoughts on “Configure Automatic WordPress Updates”

    • Hallo Markus,

      nie (ohne wirklich guten Grund) eine Datei unter wp-includes bearbeiten. Diese werden mit dem nächsten WordPress-Update überschrieben. Aus diesem Grund immer die functions.php im (Child-)Theme-Verzeichnis bearbeiten.

      Viele Grüße
      Sebastian

      Reply
  1. das true oder false muss nach dem “return …; } gesetzt werden und die Zeile // true zum Aktivieren, false zum Deaktivieren löschen?

    Reply

Leave a Comment