• Resolved jatinder1987

    (@jatinder1987)


    // Filter to modify number of days of history to 180days. Default is 60 days.
    add_filter(
    "simple_history/db_purge_days_interval",
    function( $days ) {
    $days = 180;
    return $days;
    }
    );

    Hello, I added the above code in functions.php file but it doesn’t seem to work. It does nothing. It doesn’t showed 180 days option in dates select box on this page -> ?page=simple_history_page

    Thanks,

Viewing 1 replies (of 1 total)
  • Plugin Author P?r Thernstr?m

    (@eskapism)

    Hi @jatinder1987. The filter determines for how long events in the log will be stored. Items older that this value will be removed from the log once a week, on sundays if I’m not remembering wrong. It will not change the values in the dropdown. Wait until next sunday and see if removes anything from the db like it usually does. If it does not – your code is working ??

Viewing 1 replies (of 1 total)
  • You must be logged in to reply to this topic.