Skip to main content

Why the preview link of private files can be viewed by unregistered users?

Because our previewer uses Google Viewer, by default no one can access private files. So, in order to allow Google Previewer access your private files, we generate a temporary token to access these files. By default, this token time is 3600 seconds.

How can I change the token live time?

 
You can go to "functions.php" file of your current theme, then insert the function below:
 
add_filter('wpfd_token_live_time', function($time){
return 900;
});

 

 

 

Note: 900 is the token live time (by second). And it is not applied to the previewed files before this function is added.