Upload Directory – Looking at Root
-
Hello all,
I’m using a plugin to zip up my website into a static html. Whenever I get the archive this creates it gives me a folders that go all the way up to the root such as this: “
\statichtml\Inetpub\Test-Public\wp-content\uploads\20142\statichtml”I only want the archive to start at the last statichtml. Here’s the code for where it’s looking:
$uploadDir = wp_upload_dir();
$exporter = wp_get_current_user();
$archiveName = $uploadDir[‘path’] . ‘/’ . self::HOOK;
$archiveDir = $archiveName . ‘/’;
if (!file_exists($archiveDir))
{
wp_mkdir_p($archiveDir);
}Any clues on what to change within the plugin or where in the WordPress configuration I need to tweak a setting?
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘Upload Directory – Looking at Root’ is closed to new replies.