Luca's Blog

Latest Post

29 May 2021

How to enable WordPress Automatic background updates

Environment WordPress 3.7+ Issue Maintain up to date a Website with WordPress Automatic background updates. Resolution Using filters allows for fine-tuned control of WordPress Automatic Updates. Add the following filters in a must-use plugin - under wp-content/mu-plugins by default: wp-content/mu-plugins/update.php <?php // mu-plugins/update.php add_filter( 'allow_dev_auto_core_updates', '__return_false' ); // Enable nightlies (dev updates) add_filter( 'allow_major_auto_core_updates', '__return_true' ); // Enable major updates add_filter( 'allow_minor_auto_core_updates', '__return_true' ); // Enable minor updates add_filter( 'auto_update_plugin', '__return_true' ); add_filter( 'auto_update_theme', '__return_true' ); add_filter( 'auto_update_translation', '__return_true' ); add_filter( 'auto_core_update_send_email', '__return_true' ); Root Cause WordPress Automatic background updates are available since WordPress 3. ...Read More

All Posts