WordPress Hooks Explorer

Listing all hooks extracted WordPress Core


Details about upgrader_overwrote_package

Back to home

Files

Filename Hook Type Line Number PHP Doc
wp-admin/includes/class-plugin-upgrader.php do_action 169 /**
* Fires when the upgrader has successfully overwritten a currently installed
* plugin or theme with an uploaded zip package.
*
* @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').
*/
wp-admin/includes/class-theme-upgrader.php do_action 274 /**
* Install a theme package.
*
* @since 2.8.0
* @since 3.7.0 The `$args` parameter was added, making clearing the update cache optional.
*
* @param string $package The full local path or URI of the package.
* @param array $args {
* Optional. Other arguments for installing a theme package. Default empty array.
*
* @type bool $clear_update_cache Whether to clear the updates cache if successful.
* Default true.
* }
*
* @return bool|WP_Error True if the installation was successful, false or a WP_Error object otherwise.
*/

Hook Parameters

Parameter Type Name Description
string $package The package file.
array $data The new plugin or theme data.
string $package_type The package type ('plugin' or 'theme').