Created
August 12, 2020 00:27
-
-
Save ronalfy/9f97d2086fe960d3b5c4a608161be079 to your computer and use it in GitHub Desktop.
Enable Automatic Updates Plugins/Themes on Flywheel
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 | |
/* Enable auto-updates of plugins/themes with cron */ | |
add_action( | |
'wp_update_plugins', | |
function() { | |
if ( wp_doing_cron() && ! doing_action( 'wp_maybe_auto_update' ) ) { | |
do_action( 'wp_maybe_auto_update' ); | |
} | |
}, | |
20 | |
); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment