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.


Top ↑

Source

File: wp-admin/includes/class-wp-upgrader.php

View on Trac



Top ↑

Changelog

Changelog
VersionDescription
5.7.0Introduced.

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.