boolean_smtp_connection_deleted
Fires after a connection has been deleted.
action Tier A Since 1.0.0
Signature
add_action( 'boolean_smtp_connection_deleted', $callback, 10, 1 );Parameters
| Parameter | Type | Description |
|---|---|---|
$payload | array<string, mixed> | |
id | int | Id of the deleted connection. |
timestamp | int | Unix timestamp of the deletion. |
Fires in
app/Http/Controllers/ConnectionController.php:311—BooleanSmtp\Http\Controllers\ConnectionController::destroy()app/Http/Controllers/ConnectionController.php:358—BooleanSmtp\Http\Controllers\ConnectionController::bulkDestroy()
Example
add_action( 'boolean_smtp_connection_deleted', 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.