Action hook 'upgrader_overwrote_package'

in WP Core File wp-admin/includes/class-plugin-upgrader.php at line 169

Description

Fires when the upgrader has successfully overwritten a currently installed plugin or theme with an uploaded zip package.

Occurrences

Filename Line Number
wp-admin/includes/class-plugin-upgrader.php 169
wp-admin/includes/class-theme-upgrader.php 274

Parameters

Type Name Description
string $package The package file.
array $data The new plugin or theme data.
string $package_type The package type ('plugin' or 'theme').

PHP Doc

/**
			 * Fires when the upgrader has successfully overwritten a currently installed
			 * plugin or theme with an uploaded zip package.
			 *
			 * @since 5.5.0
			 *
			 * @param string  $package      The package file.
			 * @param array   $data         The new plugin or theme data.
			 * @param string  $package_type The package type ('plugin' or 'theme').
			 */