Created
August 15, 2018 08:29
-
-
Save petskratt/1d3e29fb4e6224e1a73b2422c8363044 to your computer and use it in GitHub Desktop.
This file contains 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: Zone Updateall | |
Plugin URI: https://gist.github.com/petskratt/1d3e29fb4e6224e1a73b2422c8363044 | |
Description: Allow automatic WP and plugin updates. No fancy settings, just does the job. | |
Author: Peeter Marvet | |
Version: 0.1 | |
Author URI: https://www.zone.ee/ | |
*/ | |
// always update WordPress core (major and minor versions) | |
if ( ! defined( 'WP_AUTO_UPDATE_CORE' ) || 'WP_AUTO_UPDATE_CORE' !== true ) { | |
define( 'WP_AUTO_UPDATE_CORE', true ); | |
} | |
// allow automatic plugin updates | |
add_filter( 'auto_update_plugin', '__return_true' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment