Instantly share code, notes, and snippets.

Embed
What would you like to do?
<?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