WordPress at a glance
action is not described

upgrader_process_complete action-hook . WP 3.6.0

Fires when the upgrader process is complete.

See also 'upgrader_package_options'.

Usage

add_action( 'upgrader_process_complete', 'action_function_name_2692', 10, 2 );
function action_function_name_2692( $this, $hook_extra ){
	// action...
}
$this(WP_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)

Array of bulk item update data.

  • $action (string)
    Type of action.
    Default: 'update'

  • $type (string)
    Type of update process. Accepts 'plugin', 'theme', 'translation', or 'core'.

  • $bulk (true/false)
    Whether the update process is a bulk update.
    Default: true

  • $plugins (array)
    Array of the basename paths of the plugins' main files.

  • $themes (array)
    The theme slugs.

  • $translations (array)
    Array of translations update data.

    • $language (string)
      The locale the translation is for.

    • $type (string)
      Type of translation. Accepts 'plugin', 'theme', or 'core'.

    • $slug (string)
      Text domain the translation is for. The slug of a theme/plugin or 'default' for core translations.

    • $version (string)
      The version of a theme, plugin, or core.

Notes

  • Since 3.7.0 Added to WP_Upgrader::run().
  • Since 4.6.0 $translations was added as a possible argument to $hook_extra.

Where the hook is called

WP_Upgrader::run()
upgrader_process_complete
Core_Upgrader::upgrade()
upgrader_process_complete
Language_Pack_Upgrader::bulk_upgrade()
upgrader_process_complete
Plugin_Upgrader::bulk_upgrade()
upgrader_process_complete
Theme_Upgrader::bulk_upgrade()
upgrader_process_complete
wp-admin/includes/class-wp-upgrader.php 793
do_action( 'upgrader_process_complete', $this, $options['hook_extra'] );
wp-admin/includes/class-core-upgrader.php 183
do_action( 'upgrader_process_complete', $this, array( 'action' => 'update', 'type' => 'core' ) );
wp-admin/includes/class-language-pack-upgrader.php 271-276
do_action( 'upgrader_process_complete', $this, array(
	'action'       => 'update',
	'type'         => 'translation',
	'bulk'         => true,
	'translations' => $language_updates_results
) );
wp-admin/includes/class-plugin-upgrader.php 299-304
do_action( 'upgrader_process_complete', $this, array(
	'action' => 'update',
	'type' => 'plugin',
	'bulk' => true,
	'plugins' => $plugins,
) );
wp-admin/includes/class-theme-upgrader.php 397-402
do_action( 'upgrader_process_complete', $this, array(
	'action' => 'update',
	'type' => 'theme',
	'bulk' => true,
	'themes' => $themes,
) );

Where the hook is used (in WP core)

wp-admin/includes/class-wp-automatic-updater.php 379
remove_action( 'upgrader_process_complete', array( 'Language_Pack_Upgrader', 'async_upgrade' ), 20 );
wp-admin/includes/class-wp-automatic-updater.php 380
remove_action( 'upgrader_process_complete', 'wp_version_check' );
wp-admin/includes/class-wp-automatic-updater.php 381
remove_action( 'upgrader_process_complete', 'wp_update_plugins' );
wp-admin/includes/class-wp-automatic-updater.php 382
remove_action( 'upgrader_process_complete', 'wp_update_themes' );
wp-admin/includes/class-language-pack-upgrader.php 265
remove_action( 'upgrader_process_complete', array( 'Language_Pack_Upgrader', 'async_upgrade' ), 20 );
wp-admin/includes/class-language-pack-upgrader.php 266
remove_action( 'upgrader_process_complete', 'wp_version_check' );
wp-admin/includes/class-language-pack-upgrader.php 267
remove_action( 'upgrader_process_complete', 'wp_update_plugins' );
wp-admin/includes/class-language-pack-upgrader.php 268
remove_action( 'upgrader_process_complete', 'wp_update_themes' );
wp-admin/includes/class-language-pack-upgrader.php 279
add_action( 'upgrader_process_complete', array( 'Language_Pack_Upgrader', 'async_upgrade' ), 20 );
wp-admin/includes/class-language-pack-upgrader.php 280
add_action( 'upgrader_process_complete', 'wp_version_check', 10, 0 );
wp-admin/includes/class-language-pack-upgrader.php 281
add_action( 'upgrader_process_complete', 'wp_update_plugins', 10, 0 );
wp-admin/includes/class-language-pack-upgrader.php 282
add_action( 'upgrader_process_complete', 'wp_update_themes', 10, 0 );
wp-admin/includes/class-theme-upgrader.php 202
add_action( 'upgrader_process_complete', 'wp_clean_themes_cache', 9, 0 );
wp-admin/includes/class-theme-upgrader.php 216
remove_action( 'upgrader_process_complete', 'wp_clean_themes_cache', 9 );
wp-admin/includes/class-theme-upgrader.php 271
add_action( 'upgrader_process_complete', 'wp_clean_themes_cache', 9, 0 );
wp-admin/includes/class-theme-upgrader.php 286
remove_action( 'upgrader_process_complete', 'wp_clean_themes_cache', 9 );
wp-admin/includes/class-plugin-upgrader.php 103
add_action( 'upgrader_process_complete', 'wp_clean_plugins_cache', 9, 0 );
wp-admin/includes/class-plugin-upgrader.php 117
remove_action( 'upgrader_process_complete', 'wp_clean_plugins_cache', 9 );
wp-admin/includes/class-plugin-upgrader.php 171
add_action( 'upgrader_process_complete', 'wp_clean_plugins_cache', 9, 0 );
wp-admin/includes/class-plugin-upgrader.php 187
remove_action( 'upgrader_process_complete', 'wp_clean_plugins_cache', 9 );
wp-admin/includes/admin-filters.php 134
add_action( 'upgrader_process_complete', array( 'Language_Pack_Upgrader', 'async_upgrade' ), 20 );
wp-admin/includes/admin-filters.php 135
add_action( 'upgrader_process_complete', 'wp_version_check', 10, 0 );
wp-admin/includes/admin-filters.php 136
add_action( 'upgrader_process_complete', 'wp_update_plugins', 10, 0 );
wp-admin/includes/admin-filters.php 137
add_action( 'upgrader_process_complete', 'wp_update_themes', 10, 0 );