soup-bowl / wp-simple-smtp

📨 WordPress SMTP plugin. Plain and simple.
https://wordpress.org/plugins/simple-smtp
MIT License
24 stars 5 forks source link

Change log expiry via hook & expiry visibility #165

Closed soup-bowl closed 3 months ago

soup-bowl commented 7 months ago

This PR introduces the ability to change the log expiry via a new hook, plus a notice for how long the expiry time is currently set to.

A screenshot of the Mail settings with the words "this log will expire in 1 month"

The new hook:

# Change the time for expiry (default is 1 month).
add_filter( 'simple_smtp_log_expiry', 2629800 );
codesandbox[bot] commented 7 months ago

Review or Edit in CodeSandbox

Open the branch in Web EditorVS CodeInsiders
Open Preview