apply_filters( ‘upgrader_pre_download’, bool $reply, string $package, WP_Upgrader $upgrader, array $hook_extra )

In this article

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

$reply = apply_filters( 'upgrader_pre_download', false, $package, $this, $hook_extra );

Changelog

VersionDescription
5.5.0Added the $hook_extra parameter.
3.7.0Introduced.

User Contributed Notes

You must log in before being able to contribute a note or feedback.