Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
<?php
/*
Plugin Name: Auto Update
Description: Enables automatic background updates for core, plugins, and themes. See <a href="https://codex.wordpress.org/Configuring_Automatic_Background_Updates" target="_blank">Configuring Automatic Background Updates</a> for more details.
Version: 1.0.0
*/
// Enable automatic updates for core major releases
add_filter( 'allow_major_auto_core_updates', '__return_true' );
// Enable automatic updates for all plugins
add_filter( 'auto_update_plugin', '__return_true' );
// Enable automatic updates for all themes
add_filter( 'auto_update_theme', '__return_true' );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment