WordPress at a glance
action is not described

upgrader_overwrote_package action-hook . WP 5.5.0

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

Usage

add_action( 'upgrader_overwrote_package', 'action_function_name_342', 10, 3 );
function action_function_name_342( $package, $data, $package_type ){
	// action...
}
$package(string)
The package file.
$data(array)
The new plugin or theme data.
$package_type(string)
The package type ('plugin' or 'theme').

Changelog

Since 5.5.0 Introduced.

Where the hook is called

Plugin_Upgrader::install()
upgrader_overwrote_package
Theme_Upgrader::install()
upgrader_overwrote_package
wp-admin/includes/class-plugin-upgrader.php 169
do_action( 'upgrader_overwrote_package', $package, $this->new_plugin_data, 'plugin' );
wp-admin/includes/class-theme-upgrader.php 274
do_action( 'upgrader_overwrote_package', $package, $this->new_theme_data, 'theme' );

Where in WP core the hook is used WordPress

Usage not found.