Skip to content

Instantly share code, notes, and snippets.

@petskratt
Created August 15, 2018 08:29
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save petskratt/1d3e29fb4e6224e1a73b2422c8363044 to your computer and use it in GitHub Desktop.
Save petskratt/1d3e29fb4e6224e1a73b2422c8363044 to your computer and use it in GitHub Desktop.
<?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