upgrader_install_package_result WordPress Filter Hook
The upgrader_install_package_result hook is triggered when the result of an installation operation is returned. This hook can be used to take any necessary action after a plugin or theme has been installed. For example, you could use this hook to trigger a cache refresh or to send a notification to the administrator.
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().
- $hook_extra
(array)Extra arguments passed to hooked filters.
Source
Changelog
Version | Description |
---|---|
5.7.0 | Introduced. |