upgrader_install_package_result filter-hook . WP 5.7.0
Filters the result of WP_Upgrader::install_package().
Usage
add_filter( 'upgrader_install_package_result', 'filter_function_name_1080', 10, 2 ); function filter_function_name_1080( $result, $hook_extra ){ // filter... return $result; }
- $result(array|WP_Error)
- Result from WP_Upgrader::install_package().
- $hook_extra(array)
- Extra arguments passed to hooked filters.
Changelog
Since 5.7.0 | Introduced. |
Where the hook is called
wp-admin/includes/class-wp-upgrader.php 809
$result = apply_filters( 'upgrader_install_package_result', $result, $options['hook_extra'] );