Securing your private files
-
I am not a coder but can make some changes to the code (former COBOL programmer). Can someone please help me with how I would change the file path as suggested below? Do you need to create your own path (i.e. /ben/secure/whatever/)? Thanks.
By changing that folder location
This method only works with WP Customer Area version 5.0.0 and above. However, it has the advantage of working with any kind of server.
You will change the directory where files are stored using a filter in your theme’s functions.php file:
function cuar_change_private_directory($original_dir) {
return ‘/path/to/my/own/directory’;
}
add_filter(‘cuar/core/ownership/base-private-storage-directory’, ‘cuar_change_private_directory’);
The topic ‘Securing your private files’ is closed to new replies.