Last active
August 29, 2015 14:16
-
-
Save annalinneajohansson/be7b63497a3eab9c0bfa to your computer and use it in GitHub Desktop.
Do Automatic Updates
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| /* | |
| Plugin Name: Do Automatic Updates | |
| Plugin URI: | |
| Description: Do automatic updates on everything; themes, plugins, translations and core (both minor and major updates). | |
| Author: Anna Johansson | |
| Version: 1 | |
| Author URI: http://annalinneajohansson.com | |
| */ | |
| add_filter( 'allow_major_auto_core_updates', '__return_true' ); | |
| add_filter( 'allow_minor_auto_core_updates', '__return_true' ); | |
| add_filter( 'auto_update_translation', '__return_true' ); | |
| add_filter( 'auto_update_plugin', '__return_true' ); | |
| 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