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.
Source
Changelog
Version | Description |
---|---|
5.5.0 | Added the $hook_extra parameter. |
3.7.0 | Introduced. |