
前言介紹
- 這款 WordPress 外掛「Unattached Media Manager」是 2026-02-20 上架。
- 目前尚無安裝啟用數,是個很新的外掛。如有要安裝使用,建議多測試確保功能沒問題!
- 上一次更新是 2026-02-21,距離現在已有 4 天。
- 外掛最低要求 WordPress 5.8 以上版本才可以安裝。
- 外掛要求網站主機運作至少需要 PHP 版本 7.4 以上。
- 尚未有人給過這款外掛評分。
- 還沒有人在論壇上發問,可能目前使用數不多,還沒有什麼大問題。
外掛協作開發者
外掛標籤
cleanup | attachments | unused media | media cleaner | media library |
內容簡介
總結: 這個外掛不同於其他媒體清理外掛,它首先修復了 WordPress 的一個基本問題,並且可以有效管理媒體附件。
問題與解答:
1. 這個外掛和其他媒體清理外掛有什麼不同之處?
這個外掛不僅可以刪除未使用的圖片,還修復了 WordPress 的一個基本問題,確保媒體附件正確連接。
2. WordPress 為什麼的「未連接媒體」過濾器容易出現問題?
WordPress僅在媒體透過文章編輯器直接上傳時將其標記為「已連接」,其他途徑添加的媒體(如ACF字段、Gutenberg區塊、頁面構建器等)顯示為「未連接」,使得過濾器失效。
3. 這個外掛如何修復這個問題?
這個外掛會掃描整個網站,找到所有實際使用的媒體文件,並正確將它們附加到其父文章。這樣一來,「未連接」過濾器就可以正確顯示只有真正未使用的媒體。
4. 如何使用這個外掛的工作流程?
- 掃描:找出網站上所有媒體的使用情況
- 附加:點擊一下將所有「被使用但未連接」的媒體正確附加到其父文章
- 檢查:現在WordPress的「未連接」過濾器只顯示真正未使用的文件
- 清理:可以使用WordPress的原生工具或這個外掛的安全刪除功能
- 完成:如有需要,可以卸載外掛,修復保留在WordPress中。
原文外掛簡介
Why This Plugin Is Different
Most media cleaner plugins help you delete unused images. This plugin fixes a fundamental WordPress problem first.
WordPress has a built-in “Unattached” filter in the Media Library. The idea is simple: it shows you media files that aren’t connected to any post, so you can decide whether to keep or delete them.
The problem? WordPress only marks media as “attached” if it was uploaded directly through the post editor. Any image added through ACF fields, Gutenberg blocks, page builders, widgets, theme options, or shortcodes shows as “Unattached” — even though it’s actively being used on your site.
This makes WordPress’s native “Unattached” filter completely unreliable.
How Unattached Media Manager Fixes This
This plugin scans your entire site, finds every place where media files are actually being used, and properly attaches them to their parent posts. Once attached:
WordPress’s “Unattached” filter actually works — It now shows only truly unused media
You can use WordPress’s native tools — No need to depend on third-party plugins to manage media
Import/export plugins work correctly — Tools like WP All Import, WP Migrate, Duplicator, and others can now properly identify and migrate media with their associated posts
You can safely uninstall this plugin — The attachments remain as part of WordPress’s native structure
The Workflow
Scan — The plugin finds all media usage across your site (content, ACF, blocks, widgets, options, etc.)
Attach — One-click to properly attach all “used but unattached” media to their parent posts
Review — Now WordPress’s “Unattached” filter shows only genuinely unused files
Clean Up — Use WordPress’s native tools OR this plugin’s safe deletion features
Done — Uninstall if you want; the fixes stay with WordPress
Yes, It Also Deletes Unused Media
Like other media cleaners, this plugin also helps you safely delete unused media with:
Trash support — Move to trash first, restore if needed
Permanent delete — Remove forever when you’re sure
Change history — Track all attachment changes with one-click revert
But the real value is fixing WordPress’s attachment system so you don’t need to depend on any plugin long-term.
Two Processing Modes
Browser-Driven (Recommended) — Fast and reliable with real-time progress. Keep the browser tab open until complete.
Background (WP-Cron) — Processing continues even after closing your browser. Ideal for server cron setups.
Key Features
Comprehensive Scanning — Detects media usage in post content, featured images, Gutenberg blocks, ACF fields, Elementor, Meta Box, WooCommerce, SEO plugins, widgets, theme options, and more
Fix Unattached Media — One-click to properly attach all “used but unattached” media
Media Library Integration — See usage count directly in your Media Library list view
Safe Deletion — WordPress trash support with restore capability
Change History — Full audit trail with one-click revert for any attachment
Pause & Resume — Stop any operation and continue later
Resource Aware — Three modes (Low/Auto/High) for shared hosting to dedicated servers
Export Reports — Download CSV reports of all media usage
Developer Friendly — Hooks, filters, REST API, and WP-CLI commands
The Problem It Solves
WordPress marks media as “Unattached” if it wasn’t uploaded directly to a post. But many media files ARE being used — they’re just embedded via:
The block editor (Gutenberg)
Page builders like Elementor or Beaver Builder
ACF image/gallery fields
WooCommerce product galleries
Theme customizer settings
Widget areas
Shortcodes
Custom meta boxes
Unattached Media Manager finds ALL these references and properly attaches the media, so WordPress correctly reflects which files are actually in use.
Server-Friendly Design
This plugin is designed to work on ALL servers, including shared hosting with limited resources:
Never blocks your site – All heavy operations are processed in batches
Adaptive resource usage – Automatically detects server limits and adjusts accordingly
Three resource modes:
Low Resources – 5 items/batch, 2-minute intervals (for shared hosting)
Auto (Recommended) – 15 items/batch, 1-minute intervals (adjusts automatically)
High Performance – 50 items/batch, 30-second intervals (for dedicated servers)
Two processing strategies – Choose browser-driven (fast) or background WP-Cron mode
Supported Content Types
ALL features below are FREE – no Pro version required!
Post Content – Classic editor, Gutenberg blocks, shortcodes, inline styles, data attributes
Featured Images – Thumbnail assignments
ACF Fields – Image, gallery, file, repeater, flexible content, and group fields
Gutenberg Blocks – Core image, gallery, cover, media & text blocks
Elementor – All widgets, backgrounds, galleries, sliders, and responsive images
Meta Box – All field types including groups and cloneable fields
WooCommerce – Product galleries, variation images, downloadable files, category thumbnails
SEO Plugins – Yoast SEO, Rank Math, All in One SEO, SEOPress (OpenGraph & Twitter images)
Widgets – Image widgets, text widgets with media, custom HTML
Theme Options – Customizer settings, theme mods, custom logos
Options Table – Plugin settings that store media IDs or URLs
Video & Audio – HTML5 video/audio elements, poster images, source tags
Responsive Images – srcset attributes and lazy-loading data attributes
For Developers
Unattached Media Manager is built with extensibility in mind:
Hooks & Filters – Extend scanning with custom parsers
REST API – Query media usage programmatically
WP-CLI Commands – Run scans from the command line (wp aioms scan)
Custom Post Types – Automatically scans all public post types
How to Use
Step 1: Run Your First Scan
Navigate to Media → Media Solution
Click Start Full Scan
Choose your processing mode (Browser-Driven recommended for most users)
Watch the real-time progress as your media library is scanned
Step 2: Review the Dashboard
After scanning, you’ll see:
Total Media Files – All attachments in your library
In Use – Media files with detected references
Potentially Unused – Media files with no detected references
Used but Unattached – Media that’s used but marked as “Unattached” in WordPress
Total References – Total number of places media is referenced
Step 3: Fix Unattached Media
If you have “Used but Unattached” media:
Click the Attach All Media Files button
The operation runs in the background
Each attachment is tracked in Change History for easy reverting
Step 4: Clean Up Unused Media
Go to the Unused Media tab to:
Review – Check each file before taking action
Move to Trash – Safely move to WordPress trash (can be restored)
Restore – Bring items back from trash if needed
Delete Permanently – Remove forever (cannot be undone)
Empty Trash – Delete all trashed media at once
Important: All bulk operations run in the background. You’ll see a status bar showing progress.
Step 5: Review Change History
The Change History tab shows:
All attachments made by this plugin
When each change occurred
What post each media was attached to
Option to Revert any change (detaches the media)
Important Precautions
Before Deleting Any Media
Always run a full scan first – Make sure the index is up to date
Review files manually – The scanner detects database references, but images might be:
Hardcoded in theme PHP files
Used by external websites linking to your images
Referenced in custom code or third-party plugins not yet supported
Used in email templates stored outside WordPress
Use Trash first – Move to trash instead of deleting permanently
Wait before emptying trash – Keep trashed items for a few days to catch any issues
About “Potentially Unused” Media
Files marked as “Potentially Unused” means:
No references were found in the scanned content
This doesn’t guarantee the file is unused
The file might be used in ways not detected:
Theme template files (hardcoded)
External sites linking to your images
Custom plugins with non-standard storage
CSS background images defined in stylesheets
JavaScript-loaded images
Recommended Workflow
Scan – Run a full scan with all content types enabled
Review – Look at the Unused Media tab
Research – For each file, consider where it might be used
Trash – Move questionable items to trash (not permanent delete)
Monitor – Check your site for a few days for missing images
Delete – Only permanently delete after confirming no issues
Server Resources
Shared Hosting – Use “Low Resources” mode in settings
If operations timeout – Switch to Low Resources mode
Large media libraries – The scan may take longer but will complete
WP Cron must work – Ensure WordPress cron is running (check with your host)
Privacy Policy
Unattached Media Manager does not:
Collect any personal data
Send any data to external servers
Use any third-party services
Track users or usage
All data is stored locally in your WordPress database in custom tables that are removed when you uninstall the plugin.
Uninstallation
When you uninstall (delete) the plugin:
All custom database tables are removed
All plugin options are deleted
All plugin transients are cleared
All scheduled cron events are removed
Post meta created by the plugin is deleted
Note: Attachment relationships (post_parent) that were set by this plugin are NOT removed, as these are now part of WordPress’s native media library structure. If you need to revert these, use the Change History tab before uninstalling.
Credits
Built with love for the WordPress community
Icons from WordPress Dashicons
Inspired by the need to keep media libraries clean and organized
各版本下載點
- 方法一:點下方版本號的連結下載 ZIP 檔案後,登入網站後台左側選單「外掛」的「安裝外掛」,然後選擇上方的「上傳外掛」,把下載回去的 ZIP 外掛打包檔案上傳上去安裝與啟用。
- 方法二:透過「安裝外掛」的畫面右方搜尋功能,搜尋外掛名稱「Unattached Media Manager」來進行安裝。
(建議使用方法二,確保安裝的版本符合當前運作的 WordPress 環境。
1.0.2 | 1.0.3 | 1.0.5 | trunk |
延伸相關外掛(你可能也想知道)
Instant Images – One-click Image Uploads from Unsplash, Openverse, Pixabay, Pexels, and Giphy 》即使不離開 WordPress,也可以從 Unsplash、Pixabay、Pexels 或 Openverse 立即將照片上傳到您的網站!, Instant Images 是從 Unsplash、Pixabay、Pexels 和 ...。
Folders – Unlimited Folders to Organize Media Library Folder, Pages, Posts, File Manager 》最新消息!免費版現在可以建立無限數量的資料夾 🎉, Folders 是一個 WordPress 外掛,讓使用者可以快速將所有頁面、文章和媒體檔案分類到資料夾中。您可以輕...。
Media Library Assistant 》媒體庫助手提供多個增強功能,方便管理媒體庫,其中包括:, , , , [mla_gallery] 短碼,在文章、頁面或自訂文章類型中使用,添加圖片和/或其他媒體庫項目(...。
Enhanced Media Library 》這款外掛對於需要管理大量媒體檔案的使用者非常有用。它包含以下功能:, , 媒體項目的無限分類和標籤, 無限自訂分類法和第三方分類法的使用, 可配置的過濾器...。
WP Extra File Types 》這個外掛讓你可以新增檔案類型到 Media Library 上傳程序預設的檔案類型清單中。。Export Media Library 》此外掛允許使用者將媒體庫檔案匯出成壓縮的 zip 檔案。, 連結, , 官方網站, 技術支援, 。
Crop-Thumbnails 》此外掛提供調整裁切圖像的裁切區域功能。它會在編輯頁面和媒體對話框中添加按鈕,以便進入裁剪編輯器。, 在裁剪編輯器中,您可以選擇一個或多個(如果它們具...。
Simple User Avatar 》這個外掛程式簡化了WordPress使用者的生活。, 現在使用者可以從他的媒體庫中簡單地新增或刪除他們的頭像圖像。易於使用,不需要其他的功能。外掛程式可在GitH...。
The Paste 》這個 WordPress 外掛可讓您直接貼上圖片到 WordPress 的文字編輯器中,加快您的工作流程,並且把它們上傳到媒體庫中。, 您可以從許多桌面應用程式中複製圖片...。
Mime Types Plus 》編輯 Mime 型別, , 新增 Mime 型別, 移除 Mime 型別, 變更檔案型別, , 編輯用戶, , 為每個用戶指定可上傳的檔案副檔名, 為每個用戶指定不可上傳的檔案副檔名, 。
Media Library Helper — Bulk edit image ALT, caption & description 》如果你在WordPress媒體庫中有大量的圖片而且擔心如何更新它們的ALT標籤、標題或描述,不用擔心。這個外掛讓你只需在WordPress控制面板的媒體庫頁面上點擊幾下...。
File Manager for Google Drive – Integrate Google Drive 》使用這款最佳且使用者友善的「Google Drive」WordPress外掛,讓您的Google Drive與WordPress完美整合,體驗順暢的使用體驗。, , 輕鬆地在您的網站上管理和分...。
Fly Dynamic Image Resizer 》進入 Github 倉庫 ♥, 主題開發人員最大的問題之一是多個圖片尺寸的問題。當您在媒體庫上傳圖像時,WordPress 根據您使用 add_image_size() 定義的所有圖像尺...。
CatFolders – WordPress Media Library Folders & Categories 》使用 WP Media Folders - CatFolders,更快速地對媒體文件進行更好的分類。, , CatFolders使用最新技術和最少的加載元素在WordPress媒體庫中創建文件夾。它提...。
Media Library File Size 》WordPress Media Library 可以讓用户上傳和管理媒體文件,但是別無法查看文件大小,因此推出了 “Media File Sizes” 插件,能讓用户方便地查看文件大小, 預設...。
