
內容簡介
Media Trim 是一款 WordPress 媒體庫清理外掛,能自動掃描並找出未使用的媒體檔案與重複檔案,幫助網站釋放伺服器空間、維持媒體庫整潔,適用於各種規模的網站。
【主要功能】
• 偵測未使用的媒體檔案並標記清除
• 尋找重複檔案並進行合併
• 掃描上傳資料夾中的孤立檔案
• 垃圾桶機制,可在永久刪除前還原
• 批次操作,一次處理多個檔案
• 詳細報告,顯示每個媒體的使用位置
外掛標籤
開發者團隊
② 後台搜尋「Media Trim — Unused & Duplicate Media Cleaner」→ 直接安裝(推薦)
原文外掛簡介
Media Trim is the ultimate solution for keeping your WordPress media library clean and optimized. Stop wasting server space on unused images and forgotten uploads.
Whether you’re managing a small blog or a large content site, Media Trim scans your entire media library, identifies files that aren’t being used anywhere, and gives you the power to safely remove them with a single click.
Why Choose Media Trim?
Smart Detection: Advanced scanning algorithms detect truly unused media by checking posts, pages, custom post types, meta fields, widgets, and theme options.
Safe Cleanup: Files are moved to a trash system first, allowing you to restore them if needed before permanent deletion.
Duplicate Finder: Identify and merge duplicate files to save even more space.
File System Scanner: Find orphaned files on disk that aren’t in the media library.
Key Features
Unused Media Detection: Scan and identify media files not used anywhere on your site.
Duplicate Media Finder: Find files with identical content and merge them.
File System Scanner: Discover orphaned files in your uploads folder.
Trash System: Safe deletion with restore capability before permanent removal.
Bulk Actions: Delete, trash, or restore multiple files at once.
Detailed Reports: See exactly where each media file is being used.
Performance Optimized: Batch processing to handle large media libraries.
External Services
This plugin connects to external third-party services to provide specific features. Below is a detailed disclosure of each service used:
Pexels API
This plugin includes an optional “Stock Images” feature that integrates with the Pexels API to search and import free stock photos directly into your site.
What it does: Provides a searchable library of free-to-use stock images within the “Stock Images” tab.
When data is sent: Only when you actively search for images or import a specific photo. No data is sent automatically or in the background.
What data is sent: Your search terms and pagination preferences are sent to Pexels. Your Pexels API key (if provided in Settings) is sent as an authorization header.
Service Provider: Pexels (Canva Pty Ltd)
Terms of Use: https://www.pexels.com/terms-of-service/
Privacy Policy: https://www.pexels.com/privacy-policy/
Development
This plugin uses @wordpress/scripts for building the admin dashboard React application. The human-readable source code is located in the admin/dashboard/ directory. To build the assets:
Run npm install to install dependencies.
Run npm run build to compile the production assets into assets/admin/.
