Created
December 2, 2020 18:03
-
-
Save NickGreen/d864f6265de1ddbea1da405ea247d8a8 to your computer and use it in GitHub Desktop.
Disable all autoupdates during business hours
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 | |
// Place this snippet in config.php file | |
// Suspend all updates when outside of business hours, 9:00 AM to 5:30 PM | |
$updates_suspended = (date('Hi') < 0900 || date('Hi') > 1730); | |
define( 'AUTOMATIC_UPDATER_DISABLED', $updates_suspended ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment