Action hook 'automatic_updates_complete'

in WP Core File wp-admin/includes/class-wp-automatic-updater.php at line 783

View Source

automatic_updates_complete

Action Hook
Description
Fires after all automatic updates have run.

Hook Information

File Location wp-admin/includes/class-wp-automatic-updater.php View on GitHub
Hook Type Action
Line Number 783

Hook Parameters

Type Name Description
array $update_results The results of all attempted updates.

Usage Examples

Basic Usage
<?php
// Hook into automatic_updates_complete
add_action('automatic_updates_complete', 'my_custom_function', 10, 1);

function my_custom_function($update_results) {
    // Your custom code here
}

Source Code Context

wp-admin/includes/class-wp-automatic-updater.php:783 - How this hook is used in WordPress core
<?php
 778  			 *
 779  			 * @since 3.8.0
 780  			 *
 781  			 * @param array $update_results The results of all attempted updates.
 782  			 */
 783  			do_action( 'automatic_updates_complete', $this->update_results );
 784  		}
 785  
 786  		WP_Upgrader::release_lock( 'auto_updater' );
 787  	}
 788  

PHP Documentation

<?php
/**
			 * Fires after all automatic updates have run.
			 *
			 * @since 3.8.0
			 *
			 * @param array $update_results The results of all attempted updates.
			 */
Quick Info
  • Hook Type: Action
  • Parameters: 1
  • File: wp-admin/includes/class-wp-automatic-updater.php
Related Hooks

Related hooks will be displayed here in future updates.