boolean_smtp_connection_created
Fires after a connection has been created through the REST API.
action Tier A Since 1.0.0
Signature
add_action( 'boolean_smtp_connection_created', $callback, 10, 1 );Parameters
| Parameter | Type | Description |
|---|---|---|
$payload | array<string, mixed> | |
id | int | Id of the created connection. |
name | string | Connection name. |
driver | string | Transport driver key. |
timestamp | int | Unix timestamp of creation. |
Fires in
app/Http/Controllers/ConnectionController.php:179—BooleanSmtp\Http\Controllers\ConnectionController::store()
Example
add_action( 'boolean_smtp_connection_created', function ( array $payload ) { // React to the event.}, 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.