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

$upgrader

WP_Upgrader instance. In other contexts this might be a Theme_Upgrader, Plugin_Upgrader, Core_Upgrade, or Language_Pack_Upgrader instance.

$hook_extra

Array of bulk item update data.<br>

  • 'action'
    (string) Type of action. Default 'update'.<br>
  • 'type'
    (string) Type of update process. Accepts 'plugin', 'theme', 'translation', or 'core'.<br>
  • 'bulk'
    (bool) Whether the update process is a bulk update. Default true.<br>
  • 'plugins'
    (array) Array of the basename paths of the plugins' main files.<br>
  • 'themes'
    (array) The theme slugs.<br>
  • 'translations'
    (array) Array of translations update data.<br>
    • 'language'
      (string) The locale the translation is for.<br>
    • 'type'
      (string) Type of translation. Accepts 'plugin', 'theme', or 'core'.<br>
    • 'slug'
      (string) Text domain the translation is for. The slug of a theme/plugin or 'default' for core translations.<br>
    • 'version'
      (string) The version of a theme, plugin, or core.<br>


Source

File: wp-admin/includes/class-wp-upgrader.php

View on GitHub



Changelog

Changelog
Version Description
4.6.0 $translations was added as a possible argument to $hook_extra.
3.7.0 Added to WP_Upgrader::run().
3.6.0 Introduced.