Skip to content

Instantly share code, notes, and snippets.

@justinshreve
Created June 28, 2017 18:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save justinshreve/33ce0b15435a56b2c9cbdae46244b1e7 to your computer and use it in GitHub Desktop.
Save justinshreve/33ce0b15435a56b2c9cbdae46244b1e7 to your computer and use it in GitHub Desktop.
Force auto update
<?php
// Force an auto update
require( dirname(__FILE__) . '/wp-load.php' );
delete_option( 'auto_updater.lock' );
wp_maybe_auto_update();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment