Fires when the upgrader process is complete.
Description
See also ‘upgrader_package_options’.
Parameters
$upgraderWP_Upgrader- WP_Upgrader instance. In other contexts this might be a Theme_Upgrader, Plugin_Upgrader, Core_Upgrade, or Language_Pack_Upgrader instance.
$hook_extraarray- Array of bulk item update data.
actionstringType of action. Default'update'.typestringType of update process. Accepts'plugin','theme','translation', or'core'.bulkboolWhether the update process is a bulk update. Default true.pluginsarrayArray of the basename paths of the plugins’ main files.themesarrayThe theme slugs.translationsarrayArray of translations update data.languagestringThe locale the translation is for.typestringType of translation. Accepts'plugin','theme', or'core'.slugstringText domain the translation is for. The slug of a theme/plugin or'default'for core translations.versionstringThe version of a theme, plugin, or core.
Source
do_action( 'upgrader_process_complete', $this, $options['hook_extra'] );Changelog
Version Description 4.6.0 $translationswas added as a possible argument to$hook_extra.3.7.0 Added to WP_Upgrader::run(). 3.6.0 Introduced. User Contributed Notes
You must log in before being able to contribute a note or feedback.
Example migrated from Codex:
Do stuff if the current plug-in is being updated.
Example migrated from Codex:
This short plugin demonstrates how to display a notice to the user when they update the plugin. It displays a different notice when they first install the plugin:
Example migrated from Codex:
The following is example data of the $hook_extra parameter passed to this hook (as of v4.8.1):
In Parameters > $this “Core_Upgrade” should be “Core_Upgrader” and link to https://developer.wordpress.org/reference/classes/core_upgrader/