On this page
do_action( 'upgrader_overwrote_package', string $package, array $data, string $package_type )
Fires when the upgrader has successfully overwritten a currently installed plugin or theme with an uploaded zip package.
Parameters
$packagestring-
The package file.
$dataarray-
The new plugin or theme data.
$package_typestring-
The package type (
'plugin'or'theme').
Source
File: wp-admin/includes/class-plugin-upgrader.php. View all references
do_action( 'upgrader_overwrote_package', $package, $this->new_plugin_data, 'plugin' );
Related
Used By
| Used By | Description |
|---|---|
| Theme_Upgrader::install() wp-admin/includes/class-theme-upgrader.php | Install a theme package. |
| Plugin_Upgrader::install() wp-admin/includes/class-plugin-upgrader.php | Install a plugin package. |
Changelog
| Version | Description |
|---|---|
| 5.5.0 | Introduced. |
© 2003–2022 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/upgrader_overwrote_package