apply_filters( 'upgrader_install_package_result', array|WP_Error $result , array $hook_extra )
Filters the result of WP_Upgrader::install_package().
Parameters
-
$result
array|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.
source
stringRequired path to the package source.destination
stringRequired path to a folder to install the package in.
clear_destination
boolWhether to delete any files already in the destination folder. Default false.clear_working
boolWhether to delete the files from the working directory after copying them to the destination. Default false.abort_if_destination_exists
boolWhether to abort the installation if the destination folder already exists. Default true.hook_extra
arrayExtra arguments to pass to the filter hooks called by WP_Upgrader::install_package().
-
$hook_extra
array -
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'] );
Changelog
Version | Description |
---|---|
5.7.0 | Introduced. |