WordPress at a glance
filter is not described

upgrader_pre_download filter-hook . WP 3.7.0

Filters whether to return the package.

Usage

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

	return $reply;
}
$reply(true/false)
Whether to bail without returning the package.
Default: false
$package(string)
The package file name.
$this(WP_Upgrader)
The WP_Upgrader instance.
$hook_extra(array)
Extra arguments passed to hooked filters.

Список изменений

С версии 3.7.0 Введена.
С версии 5.5.0 Added the $hook_extra parameter.

Где вызывается хук

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

Где используется хук в ядре WordPress

Использование не найдено.