Linux 软件免费装

Ethwebs Media Cleanup

开发者 sanmathiraj
更新时间 2026年8月6日 17:31
捐献地址: 去捐款
PHP版本: 5.8 及以上
WordPress版本: 7.0
版权: GPLv2 or later
版权网址: 版权信息

标签

media library auto delete delete attachments media cleanup orphan images

下载

1.2.9

详情介绍:

Ethwebs Media Cleanup keeps your WordPress Media Library tidy automatically. When you permanently delete a post, the plugin scans for its featured image and embedded images, verifies they are not used anywhere else on your site, and safely removes them along with all generated thumbnail sizes. Key Features

安装:

  1. Upload the ethwebs-media-cleanup folder to the /wp-content/plugins/ directory.
  2. Activate the plugin through the 'Plugins' menu in WordPress.
  3. Go to 'Settings' -> 'Media Cleanup' to configure protected keywords or run an orphan scan.

屏幕截图:

  • Existing Orphaned Media Scanner - Live batch scanning progress and controls.
  • Pagination & Selection UI - Browse discovered orphans with page-by-page selection.

常见问题:

Does this delete images when I move a post to Trash?

No. Deletion only occurs when you permanently delete a post by clicking "Delete Permanently" or "Empty Trash".

Will it delete my site logo, header assets, or sidebar ads?

No. You can define custom protected keywords (e.g., ad-, logo, banner, header) or protected subfolders under the settings page to prevent specific media from ever being deleted.

Should I protect media using image titles or actual filenames?

Always use the actual image filename (or file path URL) rather than the attachment title! Protection rules check the physical file name on your server (e.g., company-logo.jpg or ad-sidebar.png). If you add logo or ad- to your protected keywords list, any file containing those terms in its filename or URL path will be automatically skipped and preserved.

How does the scanner handle sites with tens of thousands of images?

The scanner uses a chunked AJAX batch processor (50 images per request) on the server, paired with DOM pagination (25 items per view) on the frontend. This prevents both server timeouts and browser freezing.

更新日志:

1.2.9 1.2.8