Skip to content

Virtual Media Folders — Folder Exporter

Add-on for Virtual Media Folders that lets you export folders (or subtrees) as ZIP archives with optional CSV manifests.

Screenshot Folder Exporter
  • ZIP export — export any folder as a downloadable ZIP archive with the original folder hierarchy preserved.
  • Include subfolders — optionally include all descendent folders in the export.
  • CSV manifest — generate a manifest with ID, filename, URL, alt text, caption, description, MIME type, file size, dimensions, date uploaded, and folder path.
  • Background processing — powered by Action Scheduler for large folders.
  • Automatic cleanup — expired exports are automatically removed after 24 hours.
  • Admin dashboard — React-based UI with folder picker, export options, progress tracking, and export history.
  • WP-CLI support — export, list, and clean up from the command line.
RequirementVersion
WordPress6.8+
PHP8.3+
Virtual Media Foldersactive
  1. Download vmfa-folder-exporter.zip
  2. Upload via Plugins → Add New → Upload Plugin
  3. Activate via WordPress Admin → Plugins

Plugin updates are handled automatically via GitHub. No need to manually download and install updates.

Navigate to Media → Virtual Folders → Folder Exporter. The dashboard provides:

SectionPurpose
StatsTotal available folders
Export FolderSelect a folder, choose options, start export
ProgressReal-time progress bar and download button
Recent ExportsHistory table with download/delete actions
OptionDefaultDescription
Include subfoldersInclude all descendent folders in the ZIP
Include CSV manifestAdd a manifest.csv file at the ZIP root
ColumnDescription
IDAttachment post ID
filenameOriginal filename
urlFull attachment URL
alt_textImage alt text
captionAttachment caption
descriptionAttachment description
mime_typeMIME type (e.g., image/jpeg)
file_size_bytesFile size in bytes
widthImage width in pixels (if applicable)
heightImage height in pixels (if applicable)
date_uploadedUpload date
folder_pathVirtual folder path (e.g., Photos/2025/Summer)
Terminal window
wp vmfa-export folders # List folders with IDs
wp vmfa-export folders --format=json
wp vmfa-export folder 42 # Export folder ID 42 as ZIP
wp vmfa-export folder 42 --output=/tmp/photos.zip
wp vmfa-export folder 42 --no-children
wp vmfa-export folder 42 --no-manifest
wp vmfa-export list # List recent exports
wp vmfa-export list --format=json
wp vmfa-export clean # Remove expired exports
wp vmfa-export clean --all # Remove all exports

Use wp vmfa-export folders to find the folder ID needed by wp vmfa-export folder <id>. The ID is also visible in the admin folder picker.

See docs/DEVELOPER.md for filters, REST API reference with examples, WP-CLI details, and build/test instructions.

GPL-2.0-or-later