Skip to content

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

Example

boolean_smtp_prune_logs.php
add_action( 'boolean_smtp_prune_logs', function () {
// React to the event.
}, 10, 1 );

Next steps