On this page
apply_filters( 'upgrader_install_package_result', array|WP_Error $result, array $hook_extra )
Filters the result of WP_Upgrader::install_package().
Parameters
$resultarray|WP_Error-
Result from WP_Upgrader::install_package().
More Arguments from WP_Upgrader::install_package( ... $args )
Array or string of arguments for installing a package.
sourcestringRequired path to the package source.destinationstringRequired path to a folder to install the package in.
clear_destinationboolWhether to delete any files already in the destination folder. Default false.clear_workingboolWhether to delete the files from the working directory after copying them to the destination. Default false.abort_if_destination_existsboolWhether to abort the installation if the destination folder already exists. Default true.hook_extraarrayExtra arguments to pass to the filter hooks called by WP_Upgrader::install_package().
$hook_extraarray-
Extra arguments passed to hooked filters.
Source
File: wp-admin/includes/class-wp-upgrader.php. View all references
$result = apply_filters( 'upgrader_install_package_result', $result, $options['hook_extra'] );
Related
Used By
| Used By | Description |
|---|---|
| WP_Upgrader::run() wp-admin/includes/class-wp-upgrader.php | Run an upgrade/installation. |
Changelog
| Version | Description |
|---|---|
| 5.7.0 | Introduced. |
© 2003–2022 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/upgrader_install_package_result