| 开发者 | sungraizfaryad |
|---|---|
| 更新时间 | 2026年6月27日 04:01 |
| PHP版本: | 7.4 及以上 |
| WordPress版本: | 7.0 |
| 版权: | GPLv2 or later |
| 版权网址: | 版权信息 |
wp aioms scan)unattached-media-manager folder to the /wp-content/plugins/ directoryNo. The scanner processes items in small batches and automatically adjusts its resource usage. Visitors to your site won't notice any slowdown.
It depends on your chosen processing mode. With Browser-Driven mode (recommended), you need to keep the tab open. With Background (WP-Cron) mode, operations continue even after closing your browser — though this requires WP-Cron to be working properly on your site.
If you used "Move to Trash" instead of "Delete Permanently", you can restore from the Trash view in the Unused Media tab. This is why we recommend always using Trash first.
Go to the Change History tab and click Revert on any change. This will detach the media from the post it was attached to.
You can pause the scan at any time and resume it later. If something goes wrong, use the Stop button to reset and start fresh.
Yes. Unattached Media Manager scans all post content, which includes content created by page builders like Elementor, Beaver Builder, Divi, and others. The scanner looks for both image IDs and URLs in the content.
Yes. There's a dedicated ACF parser that understands image fields, gallery fields, file fields, repeaters, flexible content, and group fields.
If images are stored in the database (post meta, options, theme mods), they will be detected. Images hardcoded in PHP theme files are not detected as they're not stored in the database.
Always review before deleting! The scanner indexes database references, but images might be:
Currently, Unattached Media Manager works on individual sites. Network-wide scanning for Multisite is planned for a future release.
Yes! Set the Resource Mode to "Low Resources" in Settings. This uses smaller batches (5 items) with longer intervals (2 minutes) to prevent timeouts on shared hosting.
Use the aioms_parsers filter to add custom parsers:
add_filter( 'aioms_parsers', function( $parsers ) { $parsers['my_custom'] = new My_Custom_Parser(); return $parsers; } );
Your parser should implement the MUI_Parser_Interface.
wp unmam unused --format=csv, to export the list of unused file URLs — handy for comparing against a site crawl. The full media report (Export Report) now includes a URL column too.wp mui; the command is wp unmam. Updated throughout.table.column locations and the scanner will read them, protecting any referenced media from being flagged as unused.unmam_scan_post_types filter for developers who want to override the allow-list programmatically._mfrh_history and _original_filename meta keys (Media File Renamer plugin internals — not actual media references)rank_math_schema_VideoObject) is matched by the generic post meta walkerwp aioms)