On this page
apply_filters( 'upgrader_pre_download', bool $reply, string $package, WP_Upgrader $upgrader, array $hook_extra )
Filters whether to return the package.
Parameters
$replybool-
Whether to bail without returning the package.
Default false. $packagestring-
The package file name.
$upgraderWP_Upgrader-
The WP_Upgrader instance.
$hook_extraarray-
Extra arguments passed to hooked filters.
Source
File: wp-admin/includes/class-wp-upgrader.php. View all references
$reply = apply_filters( 'upgrader_pre_download', false, $package, $this, $hook_extra );
Related
Used By
| Used By | Description |
|---|---|
| WP_Upgrader::download_package() wp-admin/includes/class-wp-upgrader.php | Download a package. |
Changelog
© 2003–2022 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/upgrader_pre_download