How to change the autodelete time?
-
Hey,
I would like to keep the autodelete function for uploaded files, but give the mail recipients more time than 1 hour to download them.In previous support threads, I found this code and added it as PHP via the “code snippets” plugin:
add_filter('dnd_cf7_auto_delete_files', 'cf7_adjust_auto_file_deletion');
function cf7_adjust_auto_file_deletion( $time ){
$time = 300;
return $time;
}But it doesn’t seem to work. I set “$time = 300;” to test if the files would disappear after 300 seconds / 5 minutes, but nothing happened.
Did something change in the meantime? Is there another code to use now?
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘How to change the autodelete time?’ is closed to new replies.