Clanbite Since 1.6.0

verify_source( string|\WP_Error $source, string $remote_source, \WP_Upgrader $upgrader, array<string, mixed> $hook_extra ): string|\WP_Error

Make sure the unpacked folder is the plugin being updated.

public static

Class: Kernowdev\Clanbite\Updates\Updater

Parameters

$source (string|\WP_Error) Required

Path of the unpacked folder.

$remote_source (string) Required

Path of the temporary extraction directory.

$upgrader (\WP_Upgrader) Required

Upgrader.

$hook_extra (array<string, mixed>) Required

Extra data (plugin for plugin updates).

Returns

string|\WP_Error

Defined in inc/updates/class-updater.php

Changelog

VersionDescription
1.6.0Introduced.