do_action( 'upgrader_process_complete', WP_Upgrader $upgrader, array $hook_extra )
- Since
- 3.6.0, 3.7.0, 4.6.0
Fires when the upgrader process is complete.
Description
See also 'upgrader_package_options'.
Compatibility
- WordPress
- since 4.6.0
- 6.7.7
- 6.8.8
- 6.9.7
- 7.0.4
- 7.1.0
Present in every tracked release (6.7.7 to 7.1.0).
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.
@type string $action Type of action. Default 'update'.
@type string $type Type of update process. Accepts 'plugin', 'theme', 'translation', or 'core'.
@type bool $bulk Whether the update process is a bulk update. Default true.
@type array $plugins Array of the basename paths of the plugins' main files.
@type array $themes The theme slugs.
@type array $translations { Array of translations update data.
@type string $language The locale the translation is for.
@type string $type Type of translation. Accepts 'plugin', 'theme', or 'core'.
@type string $slug Text domain the translation is for. The slug of a theme/plugin or 'default' for core translations.
@type string $version The version of a theme, plugin, or core.
} }$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.
Where this hook fires · 5
wp-admin/includes/class-core-upgrader.php:221Core_Upgrader::upgrade()wp-admin/includes/class-language-pack-upgrader.php:280Language_Pack_Upgrader::bulk_upgrade()wp-admin/includes/class-plugin-upgrader.php:412Plugin_Upgrader::bulk_upgrade()wp-admin/includes/class-theme-upgrader.php:510Theme_Upgrader::bulk_upgrade()wp-admin/includes/class-wp-upgrader.php:988WP_Upgrader::run()
Source code
* @type string $slug Text domain the translation is for. The slug of a theme/plugin or * 'default' for core translations. * @type string $version The version of a theme, plugin, or core. * } * } */ do_action( 'upgrader_process_complete', $this, $options['hook_extra'] ); $this->skin->footer(); } return $result; }Changelog
Introduced in 3.6.0. Unchanged from 6.7.7 through 7.1.0.
Signature, return type and hooks compared across 5 parsed releases.
4.6.0
$translations was added as a possible argument to $hook_extra.from the docblock3.7.0
Added to WP_Upgrader::run().from the docblock
3.6.0
Introduced.from the docblock
About this page
- Parsed data
- Generated from the wordpress-develop 7.1.0 tag, and regenerated for each WordPress release so it tracks the code rather than a snapshot of it.
- Corrections
- Something wrong on this page? Report it and it gets fixed in the next regeneration.