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 string
    Required path to the package source.
  • destination string
    Required path to a folder to install the package in.
  • clear_destination bool
    Whether to delete any files already in the destination folder. Default false.
  • clear_working bool
    Whether to delete the files from the working directory after copying them to the destination. Default false.
  • abort_if_destination_exists bool
    Whether to abort the installation if the destination folder already exists. Default true.
  • hook_extra array
    Extra arguments to pass to the filter hooks called by WP_Upgrader::install_package().
$hook_extra array
Extra arguments passed to hooked filters.

Top ↑

Source

File: wp-admin/includes/class-wp-upgrader.php. View all references

$result = apply_filters( 'upgrader_install_package_result', $result, $options['hook_extra'] );


Top ↑

Changelog

Changelog
Version Description
5.7.0 Introduced.

Top ↑

User Contributed Notes

You must log in before being able to contribute a note or feedback.