Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change log expiry via hook & expiry visibility #165

Open
wants to merge 4 commits into
base: develop
Choose a base branch
from

Conversation

soup-bowl
Copy link
Owner

@soup-bowl soup-bowl commented Apr 3, 2024

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 );

@soup-bowl soup-bowl self-assigned this Apr 3, 2024
Copy link

codesandbox bot commented Apr 3, 2024

Review or Edit in CodeSandbox

Open the branch in Web EditorVS CodeInsiders

Open Preview

@soup-bowl soup-bowl marked this pull request as ready for review April 4, 2024 18:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Display the log retention value in the settings page Customisable delay to prune logs
2 participants