Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@priscillamc
Created July 31, 2015 02:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save priscillamc/62eb3e495600dc8b27f4 to your computer and use it in GitHub Desktop.
Save priscillamc/62eb3e495600dc8b27f4 to your computer and use it in GitHub Desktop.
<?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