Skip to content

Instantly share code, notes, and snippets.

@kraftbj
Last active August 29, 2015 14:19
Show Gist options
  • Save kraftbj/7d6c9e7d4950379503cd to your computer and use it in GitHub Desktop.
Save kraftbj/7d6c9e7d4950379503cd to your computer and use it in GitHub Desktop.
Autoupdate everything.
<?php
/**
* Plugin Name: Whoa Nelly!
* Plugin URI: https://kraft.im
* Description: Updates everything. Period.
* Version: 1.0
* Author: Brandon Kraft
* Author URI: https://kraft.im
*
* This program is free software; you can redistribute it and/or modify it under the terms of the GNU
* General Public License version 2, as published by the Free Software Foundation. You may NOT assume
* that you can use any other version of the GPL.
*
* This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without
* even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
*
*/
add_filter( 'auto_update_theme', '__return_true' );
add_filter( 'auto_update_plugin', '__return_true' );
add_filter( 'allow_major_auto_core_updates', '__return_true' );
add_filter( 'allow_minor_auto_core_updates', '__return_true' );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment