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').


Top ↑

Source

File: wp-admin/includes/class-plugin-upgrader.php

View on Trac



Top ↑

Changelog

Changelog
VersionDescription
5.5.0Introduced.

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.