Skip to content

Instantly share code, notes, and snippets.

@jimboobrien
Forked from ajmorris/kill_updates.php
Created September 20, 2017 23:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jimboobrien/44dab44ec179bef9804339e3262e064c to your computer and use it in GitHub Desktop.
Save jimboobrien/44dab44ec179bef9804339e3262e064c to your computer and use it in GitHub Desktop.
Snippets of Killing Auto Updates for WordPress
<?php
// This constant allows different options: true, false, 'minor'. We need to have minor selected.
// Will auto update only minor releases, e.g. 4.3.2, 4.3.3, 4.3.4, etc.
define( 'WP_AUTO_UPDATE_CORE', 'minor' );
// This would disable ALL updates: WP core, plugins, and themes.
// We shouldn't need this unless we wanted to disable auto updates to everything.
define( 'AUTOMATIC_UPDATER_DISABLED', true );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment