How to change number of days to keep the log

By default the event history log is kept for 60 days. The can be modified using our Premium add-on.

This is to prevent the log from growing to large, which can be a problem if your website is hosted on a low end web hosting solution.

If you want to modify the number of days to keep the log, the easiest way is to use our Premium Add-on to set the number of days using a GUI.

Screenshot of add-on "Extended Settings" showing radio buttons with options to keep log forever or to set the number of days to any value.
Easily set the number of days using a GUI like this when using our Premium add-on.

Read more about the add-ons to see more screenshots and view other settings that it offers.

Using a filter

This solution is a bit more advanced. If you have access to your functions.php you can use the filtersimple_history/db_purge_days_intervalto modify the number of days. See example below.

Example: Use a filter to expand the log to keep 90 days in the log. Add this snippet to for example your functions.php-file:

add_filter(
  "simple_history/db_purge_days_interval", 
  function( $days ) {
    $days = 90;
    return $days;
  }
);Code language: PHP (php)