| 开发者 |
madan1gc
rainynewt |
|---|---|
| 更新时间 | 2026年8月21日 18:28 |
| PHP版本: | 7.4 及以上 |
| WordPress版本: | 7.1 |
| 版权: | GPLv3 or later |
| 版权网址: | 版权信息 |
build/index.js) is a compiled JavaScript bundle built with @wordpress/scripts. Its human-readable source ships with the plugin in the src/ directory, and assets/css/admin.css is compiled from assets/css/admin.scss. To rebuild both from source, run npm install followed by npm run build (see package.json for the exact build scripts).
Privacy
MGCora Unused Media Cleaner runs entirely on your own server. It does not make any external HTTP requests, does not collect or transmit any data, and does not "phone home." All scan data is stored in your site's own database and is removed when you uninstall the plugin.
Roadmap
Future releases will add support for:
mgcora-unused-media-finder folder to the /wp-content/plugins/ directory, or install the plugin through the Plugins screen in WordPress.Yes. Every deletion requires explicit confirmation, and deleted files are moved to a trash folder where they can be restored. You can also enable Safe Mode in Settings to block bulk deletion entirely, and Backup Before Delete (on by default) keeps a copy of each removed file.
The scanner analyzes your post content, featured images, post meta (including page builders and ACF fields), WooCommerce product galleries, SEO plugin social images (Yoast and Rank Math), taxonomy term thumbnails and descriptions (categories, tags, and custom taxonomies), widgets, menus, and theme customizations to build a complete picture of which media files are in use. Files not found in any of these sources are flagged as unused. Whatever the scan concluded, the same checks run again against the live database at the moment you delete a file. So even if a scan is old, or something started using a file after the scan finished, that file is not removed.
Page builders such as Elementor, WPBakery, and Beaver Builder store their media references in post meta, which the scanner reads, matching both attachment IDs and file paths (including resized versions such as image-300x200.jpg and CDN-rewritten URLs). If a builder or plugin stores references in an unusual way, the honest answer is that no tool can promise to recognize every possible format. That is exactly why this plugin re-checks at delete time, keeps a backup of every removed file, offers restore-from-trash, and has a Safe Mode that blocks bulk deletion entirely. Review the flagged list before deleting, and start with a small batch if you are unsure.
Yes. The Media List screen has an Export CSV button that exports the current scan, honoring whichever status filter you have applied, including the file name, status, size, type, and where each file was found in use.
Yes. In Settings you can set scans to run daily or weekly via WP-Cron, in addition to running them manually. Pair it with the email report to get a summary after each run.
That is almost always the site's mail configuration rather than the plugin. WordPress sends mail through PHP's built-in mail() function by default, which many hosts do not deliver reliably. Use the Send Test Email button in Settings to check. It reports the actual result, and Settings also shows whether the last report was sent or failed, along with the error. If sending fails, install an SMTP plugin to route mail through a real mail service.
Yes. MGCora Unused Media Cleaner scans your entire media library (images, video, audio, PDFs, and other documents) and classifies each file as used or unused the same way.
No. MGCora Unused Media Cleaner only flags unused media. You review the results and choose what to remove, and removed files can be restored from the trash.