automatic_updates_complete

Fires after all automatic updates have run.

Description

do_action( 'automatic_updates_complete', (array) $this_update_results ); 

Parameters (1)

0. $this_update_results (array)
The results of all attempted updates.

Usage

To run the hook, copy the example below.
  1. // run the action 
  2. do_action( 'automatic_updates_complete', $this_update_results ); 
The following example is for adding a hook callback.
  1. // define the automatic_updates_complete callback 
  2. function action_automatic_updates_complete( $this_update_results ) { 
  3. // make action magic happen here... 
  4. }; 
  5.  
  6. // add the action 
  7. add_action( 'automatic_updates_complete', 'action_automatic_updates_complete', 10, 1 ); 
To remove a hook callback, use the example below.
  1. // remove the action 
  2. remove_action( 'automatic_updates_complete', 'action_automatic_updates_complete', 10, 1 ); 

Defined (1)

The action is defined in the following location(s).

/wp-admin/includes/class-wp-automatic-updater.php  
  1. do_action( 'automatic_updates_complete', $this->update_results );