Delete log after X days
-
Hi, I set the expiration days of the log that creates your plugin in 45 days, through a php function you suggested to me.
But I have a problem, I have many rows in the tables created by your plugin. Why?
How can I only delete lines older than 45 days?The php function that should clear the log older than 45 days is this:
add_filter( 'simple_history/db_purge_days_interval', function( $days ) { $days = 45; return $days; } );
Database screenshot:
https://i.ibb.co/NFBJtxt/sim-his.jpgThanks
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Delete log after X days’ is closed to new replies.