upgrader_pre_install WordPress Filter Hook

The upgrader_pre_install hook is triggered before a WordPress upgrade is performed. This hook can be used to perform any necessary actions before an upgrade, such as backing up data or checking for compatibility.

apply_filters( 'upgrader_pre_install', bool|WP_Error $response, array $hook_extra ) #

Filters the installation response before the installation has started.


Description

Returning a value that could be evaluated as a WP_Error will effectively short-circuit the installation, returning that value instead.


Top ↑

Parameters

$response

(bool|WP_Error)Installation response.

$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
2.8.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.