Tagged Questions
0
votes
2answers
3k views
Moving wp-content outside of web root?
Is it possible to move the entire wp-content folder outside of the Web root? I need to prevent anyone to view any asset file (images, pdfs, movies etc) with a direct url to the file...
Any ideas? Or ...
2
votes
1answer
199 views
What is the best way to move a plugin´s subdirectory+files to wp-content/uploads-directory?
I am developer of the plugin Leaflet Maps Marker (http://www.mapsmarker.com - "Pin, organize & show your favorite places through OpenStreetMap, OGD Vienna or any custom WMTS-map")
and have one ...
0
votes
1answer
572 views
How to check if txt file exists inside template folder?
I have a folder inside my theme where I hold some txt files which I am including in a theme. The problem is that before including txt file I need to check if it does exist. I fail checking it the ...
4
votes
3answers
878 views
Creating directory in uploads - wp_mkdir_p() or WP_Filesystem?
I don't think I ever had practical need to create folders/files in WP before, but for a plugin I need cache (for resized images) folder in wp-content/uploads.
Which raises the question - do I really ...
0
votes
1answer
405 views
$wp_filesystem returns NULL. What are the dependencies?
I need to obtain a reference to the $wp_filesystem object. In the test below, the var_dump($wp_filesystem) returns NULL. What additional files are required in order to properly set up $wp_filesystem?
...