# boolean_smtp_onboarding_applied

> Fires after the onboarding wizard has applied a reviewed connection.

Action · Tier B · Since 1.0.0



## Signature

```php
add_action( 'boolean_smtp_onboarding_applied', $callback, 10, 1 );
```

## Parameters

| Name | Type | Description |
| --- | --- | --- |
| `$result` | `array<string, mixed>` |  |
| &nbsp;&nbsp;`connection_id` | `int` | Id of the connection that was activated. |
| &nbsp;&nbsp;`driver` | `string` | Transport driver key of that connection. |
| &nbsp;&nbsp;`made_primary` | `bool` | Whether it became the default connection. |
| &nbsp;&nbsp;`migration_source` | `string|null` | Migration source the wizard imported from, `null` for a fresh set-up. |
| &nbsp;&nbsp;`log_retention_days` | `int|null` | Log retention stored with it, `null` when left unchanged. |

## Fires in

- [app/Services/Onboarding/OnboardingApplyService.php:111](https://github.com/booleanpress/boolean-smtp-src/blob/main/app/Services/Onboarding/OnboardingApplyService.php#L111) — `BooleanSmtp\Services\Onboarding\OnboardingApplyService::apply()`

## Example

```php
add_action( 'boolean_smtp_onboarding_applied', function ( array $result ) {
    // React to the event.
}, 10, 1 );
```
