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

Merged
merged 6 commits into from
Jul 21, 2024

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
@soup-bowl soup-bowl added the enhancement New feature or request label Jul 14, 2024
@soup-bowl soup-bowl merged commit b6a6573 into develop Jul 21, 2024
6 checks passed
@soup-bowl soup-bowl deleted the soup-bowl/log-expiry branch July 21, 2024 10:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
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