upgrader_pre_download WordPress Filter Hook

The upgrader_pre_download hook is called before a new version of WordPress is downloaded. This hook can be used to perform any necessary tasks before downloading begins, such as checking for compatibility with the current server environment or backing up the current installation.

apply_filters( 'upgrader_pre_download', bool $reply, string $package, WP_Upgrader $upgrader, array $hook_extra ) #

Filters whether to return the package.


Parameters

$reply

(bool)Whether to bail without returning the package. Default false.

$package

(string)The package file name.

$upgrader

(WP_Upgrader)The WP_Upgrader instance.

$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.5.0Added the $hook_extra parameter.
3.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.