do_action( 'upgrader_overwrote_package', string $package, array $data, string $package_type )
- Since
- 5.5.0
Fires when the upgrader has successfully overwritten a currently installed plugin or theme with an uploaded zip package.
Compatibility
- WordPress
- since 5.5.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
$packagestring- The package file.
$dataarray- The new plugin or theme data.
$package_typestring- The package type ('plugin' or 'theme').
Where this hook fires · 2
wp-admin/includes/class-plugin-upgrader.php:169Plugin_Upgrader::install()wp-admin/includes/class-theme-upgrader.php:274Theme_Upgrader::install()
Source code
* @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'). */ do_action( 'upgrader_overwrote_package', $package, $this->new_plugin_data, 'plugin' ); } return true; } /**Changelog
Introduced in 5.5.0. Unchanged from 6.7.7 through 7.1.0.
Signature, return type and hooks compared across 5 parsed releases.
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.