On this page
do_action( 'upgrader_process_complete', WP_Upgrader $upgrader, array $hook_extra )
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.
More Information
The
upgrader_process_completeaction hook is run when the download process for a plugin install or update finishes.Use with caution: When you use the
upgrader_process_completeaction hook in your plugin and your plugin is the one which under upgrade, then this action will run the old version of your plugin.Source
File:
wp-admin/includes/class-wp-upgrader.php. View all referencesdo_action( 'upgrader_process_complete', $this, $options['hook_extra'] );Related
Used By
Used By Description Core_Upgrader::upgrade() wp-admin/includes/class-core-upgrader.php Upgrade WordPress core.
Language_Pack_Upgrader::bulk_upgrade() wp-admin/includes/class-language-pack-upgrader.php Bulk upgrade language packs.
Plugin_Upgrader::bulk_upgrade() wp-admin/includes/class-plugin-upgrader.php Bulk upgrade several plugins at once.
Theme_Upgrader::bulk_upgrade() wp-admin/includes/class-theme-upgrader.php Upgrade several themes at once.
WP_Upgrader::run() wp-admin/includes/class-wp-upgrader.php Run an upgrade/installation.
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.
© 2003–2022 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/upgrader_process_complete