The tag has no wiki summary.

learn more… | top users | synonyms

4
votes
3answers
2k 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
58 views

Use WP_Filesystem to list files in directory

Is there a way to list files in a directory using WP_filesystem instead of something like: function listFolderFiles($dir){ $ffs = scandir($dir); echo '<ol>'; foreach($ffs as $ff){ ...
0
votes
1answer
51 views

Copy and delete a directory with WordPress functions

I have successfully used copy_dir() to copy a directory to a new location. How can I delete a directory using WordPress functions?
0
votes
1answer
104 views

Unable to access WP admin

I cannot access admin via: http://example.com/admin or http://example.com/wp-admin Fatal error: Class 'ObjectModel' not found in ...