• Resolved Telefunki

    (@telefunki)


    Hi there,

    first of all, thanks a lot for that great plugin. Everything is working pretty well on my site.
    I have a question about the days of the Activity Log, to delete it all 4 days, do I need to put the code into the functions.php of my child theme?

    If so, the code will be:

    add_filter( 'sgs_set_activity_log_lifetime', 'set_custom_log_lifetime' );
    function set_custom_log_lifetime() {
        return '4';
    }
Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Support Delyan Delov

    (@delyandelov)

    Hello @telefunki,

    By adding the provided filter to your theme’s functions.php file, you will set the lifetime of the activity log, which is actually the deletion period.

    In your particular case, the activity log will be deleted every 4 days.

    Best Regards,
    Delyan Delov

    I guess you mean log entries older than 4 days are deleted?

    Plugin Support ivandzh

    (@ivandzh)

    Yes, in this case each activity log will remain available for 4 days after its creation, only then it will be deleted.

    In case no specific value is provided, the plugin will use its default value of 12 days. If you decide to use the filter, you can type any value in the range between 1 and 12.

    Best regards,
    Ivan Dzhangozov

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Question about the days in Activity Log’ is closed to new replies.