Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Enable Automatic Updates Plugins/Themes on Flywheel
<?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
You can’t perform that action at this time.