Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter Siderlan Santos (Sider)

    (@siderlan)

    Will I have any issue if I move it to the uploads directory?

    Plugin Contributor Vincent Mimoun-Prat

    (@vprat)

    Hi,

    This directory could be anywhere. The recommendation is to move it outside of your www folder so that it is secure.

    If you change the location for this folder, you’ll need to implement a hook to tell the new location:

    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');
    linden.940

    (@linden940)

    Ok, sorry but I’m still new/learning but where do I post this hook in? I would like to have the files to be posted outside the www as you said to make it more secure.

    Plugin Contributor Vincent Mimoun-Prat

    (@vprat)

    Your theme’s functions.php file

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Private Files Directory’ is closed to new replies.