Heads up!
This article contains PHP code and is intended for developers. We offer this code as a courtesy, but don't provide support for code customizations or 3rd party development.
This article contains PHP code and is intended for developers. We offer this code as a courtesy, but don't provide support for code customizations or 3rd party development.
Use this hook to adjust the default -3 hours period before temporary files are deleted.
Usage
add_filter ('frm_delete_temp_files_period', 'my_custom_function');
Parameters
- $period (string)
Examples
Adjust temporary files deletion period
add_filter('frm_delete_temp_files_period', 'adjust_temp_files_deletion_period');
function adjust_temp_files_deletion_period( $period ) {
// default is -3 hours
return '-30 minutes'; // minimum life span of a file
}