Clanbite Since 1.6.0
verify_source( string|\WP_Error $source, string $remote_source, \WP_Upgrader $upgrader, array<string, mixed> $hook_extra ): string|\WP_ErrorMake sure the unpacked folder is the plugin being updated.
public static
Class: Kernowdev\Clanbite\Updates\Updater
Parameters
$source(string|\WP_Error) RequiredPath of the unpacked folder.
$remote_source(string) RequiredPath of the temporary extraction directory.
$upgrader(\WP_Upgrader) RequiredUpgrader.
$hook_extra(array<string, mixed>) RequiredExtra data (
pluginfor plugin updates).
Returns
string|\WP_Error
Defined in inc/updates/class-updater.php
Changelog
| Version | Description |
|---|---|
| 1.6.0 | Introduced. |