wppaste
WordPress

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.
} }
  • $actionstring

    Type of action. Default 'update'.
  • $typestring

    Type of update process. Accepts 'plugin', 'theme', 'translation', or 'core'.
  • $bulkbool

    Whether the update process is a bulk update. Default true.
  • $pluginsarray

    Array of the basename paths of the plugins' main files.
  • $themesarray

    The theme slugs.
  • $translationsarray

    Array of translations update data.
    • $languagestring

      The locale the translation is for.
    • $typestring

      Type of translation. Accepts 'plugin', 'theme', or 'core'.
    • $slugstring

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

      The 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.

  1. 6.7.7
  2. 6.8.8
  3. 6.9.7
  4. 7.0.4
  5. 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 docblock
3.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 6.8.8 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.