# Updater::verify_source()

Make sure the unpacked folder is the plugin being updated.

```php
verify_source( $source, $remote_source, $upgrader, $hook_extra )
```

## Parameters

- `$source` (string|\WP_Error) Path of the unpacked folder.
- `$remote_source` (string) Path of the temporary extraction directory.
- `$upgrader` (\WP_Upgrader) Upgrader.
- `$hook_extra` (array<string, mixed>) Extra data (`plugin` for plugin updates).

## Return

`string|\WP_Error` 

## Changelog

| Version | Description |
| --- | --- |
| 1.6.0 | Introduced |
