Configure Automatic Updates WordPress

Implement WordPress automatic Updates using wp-config file

Before editing, creating a complete backup.

After backup, Navigate to the home directory and makes changes in wp-config.php file.

cd /var/www/domain.com
nano wp-config.php

Add the following…

/** Enable Auto Updates */
define('WP_AUTO_UPDATE_CORE', true);
add_filter( 'auto_update_plugin', '__return_true' );
add_filter( 'auto_update_theme', '__return_true' );

Leave a Comment