Background Updates: Add a 'automatic_updates_complete' hook that fires after any updates have run. Props pento. Fixes #25841

Built from https://develop.svn.wordpress.org/trunk@26155


git-svn-id: http://core.svn.wordpress.org/trunk@26066 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Dion Hulse 2013-11-14 05:08:09 +00:00
parent 2b1c6c8ba4
commit 4fbc450f52
1 changed files with 13 additions and 0 deletions

View File

@ -2032,6 +2032,19 @@ class WP_Automatic_Updater {
$this->after_core_update( $this->update_results['core'][0] );
}
/**
* Action triggered after any automatic updates have run.
*
* This action is triggered after all automatic updates have run,
* but doesn't guarantee that any updates were performed, you should
* check the $update_results array to determine if any updates ran.
*
* @since 3.8.0
*
* @param array $update_results The results of all updates attempted
*/
do_action( 'automatic_updates_complete', $this->update_results );
// Clear the lock
delete_option( $lock_name );
}