Created
February 10, 2021 11:24
-
-
Save temperatio/5bf7e9fbc48e91efb22ec4ee47aff75d to your computer and use it in GitHub Desktop.
Limit Simple history days
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// Clear items that are older than a 7 days (i.e. keep only the most recent 7 days in the log) | |
add_filter( "simple_history/db_purge_days_interval", function( $days ) { | |
$days = 7; | |
return $days; | |
} ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment