Filters whether to download a package for a WordPress core, plugin, theme, or translation upgrade.
$replyfalse|string|WP_Error$packagestring$upgraderWP_Upgrader$hook_extraarraywp-admin/includes/class-wp-upgrader.php:322WP_Upgrader::download_package() * @param false|string|WP_Error $reply Whether to short-circuit the download, the path to the downloaded package, * or a WP_Error object. Default false. * @param string $package The package URI. May be a remote URL or local file path. * @param WP_Upgrader $upgrader The WP_Upgrader instance. * @param array $hook_extra Extra arguments passed to hooked filters. */ $reply = apply_filters( 'upgrader_pre_download', false, $package, $this, $hook_extra ); if ( false !== $reply ) { return $reply; } if ( ! preg_match( '!^(http|https|ftp)://!i', $package ) && file_exists( $package ) ) { // Local file or remote? return $package; // Must be a local file.Introduced in 3.7.0. One change between 6.7.7 and 7.1.0.
Signature, return type and hooks compared across 5 parsed releases.
$reply retyped from bool to false|string|WP_Error.verified against source