boolean_smtp_log_file_retention_days
Filters how many days of a BooleanSMTP log channel's files are kept.
filter Tier A Since 1.0.0
Values below 1 are treated as 1: there is no setting that keeps log files forever.
Signature
add_filter( 'boolean_smtp_log_file_retention_days', $callback, 10, 2 );Parameters
| Parameter | Type | Description |
|---|---|---|
$days | int | Days to keep, today included. Default 14. |
$channel | string | The channel name. |
Returns int — Days to keep.
Fires in
app/Support/Logging/LogChannels.php:227—BooleanSmtp\Support\Logging\LogChannels::retentionDays()
Example
add_filter( 'boolean_smtp_log_file_retention_days', function ( int $days, string $channel ) { return $days;}, 10, 2 );Next steps
- Log files — every hook in this area, in firing order where that applies.
- Hook Explorer — filter and search every hook.