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_Error

Replace the placeholder package with the real, single-use download.

public static

Class: Kernowdev\Clanbite\Updates\Updater

Parameters

$reply (bool|string|\WP_Error) Required

Value so far (false to proceed with the default download).

$package (string) Required

Package address.

$upgrader (\WP_Upgrader) Required

Upgrader.

$hook_extra (array<string, mixed>) Required

Extra data.

Returns

bool|string|\WP_Error Path of the downloaded zip, or an error.

Defined in inc/updates/class-updater.php

Changelog

VersionDescription
1.6.0Introduced.