-
-
Save jimboobrien/44dab44ec179bef9804339e3262e064c to your computer and use it in GitHub Desktop.
Snippets of Killing Auto Updates for WordPress
This file contains hidden or 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 | |
// 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