Fires after all automatic updates have run.
Parameters
$update_results
array- The results of all attempted updates.
Source
do_action( 'automatic_updates_complete', $this->update_results );
Changelog
Version | Description |
---|---|
3.8.0 | Introduced. |
Fires after all automatic updates have run.
$update_results
arraydo_action( 'automatic_updates_complete', $this->update_results );
Version | Description |
---|---|
3.8.0 | Introduced. |
You must log in before being able to contribute a note or feedback.
This hook is pretty useful in case you need to perform some stuff after an automatic update gets completed by WordPress. I personally spent a lot of time figuring out how to deal with this feature, especially because I didn’t know what kind of data the
$update_results
parameter contained.So, here’s a working example of how you should use this hook.