WordPress-Simple-History
WordPress-Simple-History copied to clipboard
Enhancement: Configurable log retention period
It's quite surprising to me that all audit log entries >= 60 days old are auto-deleted with seemingly no way to either configure the log retention period or disable auto-deletion entirely.
I'd like an option in the Settings to set the log retention period (with maybe "0 days" meaning "keep forever"). The assumption that only 60 days of logs is ever needed isn't true and having to dig out monthly tape backups to restore stuff (and even then old backups might be hard to merge into the current log data) to see older logs is very much not ideal.
That would be great :) is there a way to do this by code right now via a snippet to put in functions.php?
Off course it would be awesome if this was controllable through wp-cli 😍