setup local repo
mkdir myrepository
cd myrepository
git init
add bitbucket remote as "origin"
| <?php | |
| /** | |
| * Plugin Name: Timed Auto Updates | |
| * Description: Erlaubt automatische Updates nur zwischen 4 und 6 Uhr, Montag bis Samstag. | |
| */ | |
| # Lege diese Datei als /wp-content/mu-plugins/timed-auto-updates.php ab | |
| add_filter('automatic_updater_disabled', function () { | |
| $current_hour = (int) current_time('H'); |