• Resolved Ramabyte

    (@ramabyte)


    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?

  • The topic ‘Upload Directory – Zipping up to root’ is closed to new replies.