• 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’);

    https://ww.wp.xz.cn/plugins/customer-area/

Viewing 1 replies (of 1 total)
  • Plugin Contributor Vincent Mimoun-Prat

    (@vprat)

    Hi,

    First you have to create the folder on your server. Take note of the full path to that folder.

    Then copy/paste that code snippet in the functions.php file of your theme. And replace the dummy path with your own path.

Viewing 1 replies (of 1 total)

The topic ‘Securing your private files’ is closed to new replies.