# boolean_smtp_after_migration_import

> Fires after a migration import from another plugin has finished.

Action · Tier B · Since 1.0.0



## Signature

```php
add_action( 'boolean_smtp_after_migration_import', $callback, 10, 2 );
```

## Parameters

| Name | Type | Description |
| --- | --- | --- |
| `$source` | `string` | Migration source id. |
| `$result` | `array<string, mixed>` | Import result, including success flag and any errors. |

## Fires in

- [app/Services/Migration/MigrationScanner.php:435](https://github.com/booleanpress/boolean-smtp-src/blob/main/app/Services/Migration/MigrationScanner.php#L435) — `BooleanSmtp\Services\Migration\MigrationScanner::finish()`

## Example

```php
add_action( 'boolean_smtp_after_migration_import', function ( string $source, array $result ) {
    // React to the event.
}, 10, 2 );
```
