• Is there any danger to put a files directly in root of wordpress ?
    i mean files such as javascript files , or .php classes

Viewing 2 replies - 1 through 2 (of 2 total)
  • The only issue I can think of it causing is that your theme could break if you need to move it to another installation. It’s possible that you could forget that files critical to the operation of your site are in the root directory. If you move your theme to another installation, it’s better to have those files inside the theme directory.

    Thread Starter Hercal

    (@hercal)

    These files are been used in my custom plugin , when i use ajax function the URL attribute enforce me to enter the value starting from root , i mean ,

    C:\wamp\www\mywebsite\wp-content\plugins\myplugin\myfiles\file.php

    and it can be viewed through client which is not professional , that’s why i asked this question , so what is your advice ?

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

The topic ‘adding files to root directory’ is closed to new replies.