Hi, I suppose you have the Pro version, right?
Here are instructions:
1. Go to Dashboard / Settings / WordPress File Upload / Hooks and add a new hook.
2. Give it any title you want.
3. Put the following code in the Code box:
if (!function_exists('wfu_before_file_check_handler')) {
function wfu_before_file_check_handler($changable_data, $additional_data) {
$fullpath = $changable_data["file_path"];
$onlypath = wfu_basedir($fullpath);
$filename = wfu_basename($fullpath);
$fileext = wfu_fileext($filename, true);
$username = "unknown";
$user = get_userdata($additional_data["user_id"]);
if ( $user != false ) $username = $user->user_login;
$filename = date("Y-m-d-H-i-s", time())."-".$username.$fileext;
$changable_data["file_path"] = $onlypath.$filename;
return $changable_data;
}
add_filter('wfu_before_file_check', 'wfu_before_file_check_handler', 10, 2);
}
4. Set Status to Active and Save.
The above will rename the filename to the format “YYYY-MM-DD-hh-mm-ss-username”.
Regards