Skip to content

boolean_smtp_should_store_smtp_transcript

Filters whether the SMTP transcript of a send is stored as a debug session file.

filter Tier B Since 1.0.0

Consulted for every SMTP send through a connection whose "SMTP Debug Level" is above 0. Off by default: the level only shapes the live diagnostics the Test Email screen shows. Return `true` to keep the transcript (credentials hidden) under `wp-content/uploads/boolean-smtp/debug-sessions/`, one file per email log entry, for seven days; read them with `GET tools/debug-logs` or the log entry's debug session.

Signature

add_filter( 'boolean_smtp_should_store_smtp_transcript', $callback, 10, 3 );

Parameters

ParameterTypeDescription
$storeboolWhether to store the transcript. Default `false`.
$connection\BooleanSmtp\Models\ConnectionThe connection the message is sent through.
$levelintThe connection's SMTP debug level (1–4).

Returns bool — Whether to store the transcript.

Fires in

Example

boolean_smtp_should_store_smtp_transcript.php
add_filter( 'boolean_smtp_should_store_smtp_transcript', function ( bool $store, \BooleanSmtp\Models\Connection $connection, int $level ) {
return $store;
}, 10, 3 );

Next steps