這個外掛並未在最新的 3 個 WordPress 主要版本上進行測試。開發者可能不再對這個外掛進行維護或提供技術支援,並可能會與更新版本的 WordPress 產生使用上的相容性問題。

Clean Unused Medias

描述

Clean Unused Medias, another simple way to delete the medias you don’t need anymore.

List the medias you don’t used anymore.

Works with post, page, custom post type, and ACF (Advanced Custom Fields).

Filters available :

  • The media used as site favicon
  • The medias used as post thumbnail
  • The medias uploaded in a post (and so related to it)
  • The medias used in ACF fields (image and file)
  • The medias’ URL inserted or used in a post content
  • The medias’ URL inserted or used in wp_postmeta
  • The medias’ URL inserted or used in wp_usermeta
  • The medias’ URL inserted or used in wp_options

Page dedicated to this plugin : https://xuxu.fr/2016/09/28/supprimer-les-fichiers-non-utilises-sous-wordpress/

You can contact me on :

  • My blog: https://xuxu.fr/contact
  • My Twitter account: https://twitter.com/xuxu

You can donate here ^_^ : http://goo.gl/SORljr

螢幕截圖

  • Dashboard
  • This media is used in the post content
  • This media is used as a featured image / post thumbnail
  • This media is used anywhere
  • You can check their status in the media list
  • And know if the media is used somewhere

安裝

  1. Extract and upload the directory clean-unused-medias to the /wp-content/plugins/ directory.
  2. Activate the plugin through the ‘Plugins’ menu in WordPress.
  3. Go to Medias -> Clean Unused Medias menu.
  4. Enjoy.

常見問題

Why a crawler ?

Because the feature to check if a media url is used in a post content take a very long time. So caching those medias is the best way to keep the interface fast and furious.

評價

2023年1月2日
When trying to clean with one of my projects: Logo was deleted while I set it on Customizer Not working with the latest ACF Pro (I tried version 6.0.6), all image fields have gone.
2021年12月10日
Out of my 137 medias 45 were unused. 33% of space that could be freed up. Thanks for your good work
2021年9月3日
Used on a website with 800 medias. The scanner is a little slow, 30 minutes to scan the medias. It managed to find medias even in Elementor data. In some cases, the "check again" found the media when the scanner didn't find it. Thanks a lot for this plugin.
閱讀全部5個評價

貢獻者及開發者

“Clean Unused Medias” 是一個開源的軟體。以下的人對這個外掛作出了貢獻。

貢獻者

將 Clean Unused Medias 外掛本地化為台灣繁體中文版。

對開發相關資訊感興趣?

任何人均可瀏覽程式碼、查看 SVN 存放庫,或透過 RSS 訂閱開發記錄

修改日誌

1.10

  1. Clean and fix scripts
  2. Test up with WordPress 5.7.2

1.09

  1. Test with WordPress 4.7.1 : no problem o/

1.08

  1. Fix log where the media is used
  2. Improve the crawler
  3. Hashtags and popin details available in media library

1.07

  1. Log where the file is used
  2. Display where the media is used
  3. Fix ACF check error

1.06

  1. Add more filters
  2. Improve the crawl and fix some errors
  3. Add some notices

1.05

  1. Site favicon are now not considered as unused
  2. Improve the crawler : search now in wp_options, wp_postmeta and wp_usermeta

1.04

  1. Check if the media ID is used in the content with the native WordPress shortcode [gallery]
  2. Minor user interface changes
  3. Add plugin icon 🙂

1.03

  1. Add progress bar
  2. Refresh results after deleting all medias
  3. Pause and resume the crawler
  4. Filter the results with keyword
  5. Resume the crawl if new medias were uploaded

1.02

  1. Make it really Translate ready! :p

1.01

  1. Fix security issues
  2. Translate ready!
  3. Add French translation
  4. Add WordPress notices
  5. Minor changes

1.00

Welcome!