WordPress at a glance
filter is not described

upgrader_pre_download filter-hook . WP 3.7.0

Filters whether to return the package.


add_filter( 'upgrader_pre_download', 'filter_function_name_2641', 10, 4 );
function filter_function_name_2641( $reply, $package, $upgrader, $hook_extra ){
	// filter...

	return $reply;
Whether to bail without returning the package.
Default: false
The package file name.
The WP_Upgrader instance.
Extra arguments passed to hooked filters.


Since 3.7.0 Introduced.
Since 5.5.0 Added the $hook_extra parameter.

Where the hook is called

wp-admin/includes/class-wp-upgrader.php 268
$reply = apply_filters( 'upgrader_pre_download', false, $package, $this, $hook_extra );

Where in WP core the hook is used WordPress

Usage not found.