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. |
© 2003–2021 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/upgrader_pre_download