# boolean_smtp_migration_log_row

> Filters an email-log row imported from another SMTP plugin, before it is stored.

Filter · Tier B · Since 1.0.0



## Signature

```php
add_filter( 'boolean_smtp_migration_log_row', $callback, 10, 3 );
```

## Parameters

| Name | Type | Description |
| --- | --- | --- |
| `$row` | `array<string, mixed>` | Attributes for the email-log table. |
| `$source` | `string` | Migration source id. |
| `$log` | `\BooleanSmtp\Services\Migration\Canonical\CanonicalEmailLog` | The row as the source read it. |

**Returns** `array<string, mixed>` — The attributes to store.

## Fires in

- [app/Services/Migration/MigrationRunner.php:358](https://github.com/booleanpress/boolean-smtp-src/blob/main/app/Services/Migration/MigrationRunner.php#L358) — `BooleanSmtp\Services\Migration\MigrationRunner::runLogs()`

## Example

```php
add_filter( 'boolean_smtp_migration_log_row', function ( array $row, string $source, \BooleanSmtp\Services\Migration\Canonical\CanonicalEmailLog $log ) {
    return $row;
}, 10, 3 );
```
