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
| Parameter | Type | Description |
|---|---|---|
$data | array<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
app/Http/Controllers/ConnectionController.php:127—BooleanSmtp\Http\Controllers\ConnectionController::store()
Example
add_filter( 'boolean_smtp_connection_data', function ( array $data ) { return $data;}, 10, 1 );Next steps
- Connections and OAuth — every hook in this area, in firing order where that applies.
- Hook Explorer — filter and search every hook.