boolean_smtp_migration_connection_data
Filters the attributes of a connection imported from another plugin before it is persisted.
filter Tier B Since 1.0.0
Signature
add_filter( 'boolean_smtp_migration_connection_data', $callback, 10, 2 );Parameters
| Parameter | Type | Description |
|---|---|---|
$attributes | array<string, mixed> | Connection attributes about to be persisted. |
$source | string | Identifier of the plugin the connection was imported from. |
Returns array<string, mixed> — The filtered attributes.
Fires in
app/Services/Migration/MigrationConnectionAttributes.php:41—BooleanSmtp\Services\Migration\MigrationConnectionAttributes::filtered()
Example
add_filter( 'boolean_smtp_migration_connection_data', function ( array $attributes, string $source ) { return $attributes;}, 10, 2 );Next steps
- Migration from other plugins — every hook in this area, in firing order where that applies.
- Hook Explorer — filter and search every hook.