boolean_smtp_prune_logs
Fires daily; each run deletes the email log entries older than the retention period.
action (WP-Cron) Tier B Since 1.0.0
Scheduled on `init` when not yet scheduled. The retention period comes from the `log_retention_days` setting.
Signature
add_action( 'boolean_smtp_prune_logs', $callback, 10, 0 );Parameters
No parameters.
Fires in
app/Jobs/PruneLogsJob.php:0—BooleanSmtp\Jobs\PruneLogsJob::()
Example
add_action( 'boolean_smtp_prune_logs', function () { // React to the event.}, 10, 1 );Next steps
- Delivery lifecycle — every hook in this area, in firing order where that applies.
- Hook Explorer — filter and search every hook.