plugin-icon

KDA Custom Upload Structure

作者 deniskey·
Store uploads outside wp-content in a custom folder, organized by post type. Includes a migration tool for existing media.
版本
1.3.0
最近更新:
Jul 24, 2026

English

Custom Upload Structure lets you store uploaded files outside the standard wp-content/uploads directory — for example in assets/public/ at the site root — and organize them the way you want.

Features:

  • Custom upload location. Store all media in any folder relative to the site root instead of wp-content/uploads.
  • Organize by post type. Files are placed into subfolders named after the post type they belong to (e.g. assets/public/films/). Unattached files go into a configurable “others” subfolder.
  • Year / month folders. Keep the default WordPress year/month structure inside your custom folder.
  • Transliteration. Convert Cyrillic and other non-Latin file names to Latin characters on upload (e.g. a Cyrillic file name is converted to its Latin equivalent).
  • Post ID prefix. Optionally prefix each file name with the ID of the post it is uploaded to (e.g. post 42 42-photo.jpg). Off by default.
  • Migration tool. Move existing media between the default folder and your custom structure (and back) without breaking the Media Library. Includes a dry run, optional replacement of old URLs inside post content, and a retry mode for failed items.
  • Safety. The upload folder is protected with an index.php stub, file permissions are normalized, and a full backup is required before any move.

All behaviour is controlled from Settings Upload Structure.

目前已測試版本
WordPress 7.0.2
此外掛程式已可供下載,並可用於你 系統。