Clanbite Since 1.6.0
pre_download( bool|string|\WP_Error $reply, string $package, \WP_Upgrader $upgrader, array<string, mixed> $hook_extra ): bool|string|\WP_ErrorReplace the placeholder package with the real, single-use download.
public static
Class: Kernowdev\Clanbite\Updates\Updater
Parameters
$reply(bool|string|\WP_Error) RequiredValue so far (
falseto proceed with the default download).$package(string) RequiredPackage address.
$upgrader(\WP_Upgrader) RequiredUpgrader.
$hook_extra(array<string, mixed>) RequiredExtra data.
Returns
bool|string|\WP_Error Path of the downloaded zip, or an error.
Defined in inc/updates/class-updater.php
Changelog
| Version | Description |
|---|---|
| 1.6.0 | Introduced. |