upgrader_overwrote_package WordPress Action Hook
The upgrader_overwrote_package hook is triggered when the package file is replaced with a newer version during an update.
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
- $package
(string)The package file.
- $data
(array)The new plugin or theme data.
- $package_type
(string)The package type ('plugin' or 'theme').
Source
Changelog
Version | Description |
---|---|
5.5.0 | Introduced. |