Skip to content

boolean_smtp_connection_data

Filters a connection's data before it is created through the REST API.

filter Tier A Since 1.0.0

Signature

add_filter( 'boolean_smtp_connection_data', $callback, 10, 1 );

Parameters

ParameterTypeDescription
$dataarray<string, mixed>Connection fields (`name`, `driver`, `settings`, `priority`) whitelisted from the request. Return the array to use for creation.

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

Fires in

Example

boolean_smtp_connection_data.php
add_filter( 'boolean_smtp_connection_data', function ( array $data ) {
return $data;
}, 10, 1 );

Next steps