Skip to content

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

ParameterTypeDescription
$attributesarray<string, mixed>Connection attributes about to be persisted.
$sourcestringIdentifier of the plugin the connection was imported from.

Returns array<string, mixed> — The filtered attributes.

Fires in

Example

boolean_smtp_migration_connection_data.php
add_filter( 'boolean_smtp_migration_connection_data', function ( array $attributes, string $source ) {
return $attributes;
}, 10, 2 );

Next steps