WP Manifestindependent plugin directory
manifest / ecommerce / woocommerce-orphan-images

Woocommerce Orphan Images

Wordpress plugin that cleans up your media library - fast.

by George Nikolopoulos · github.com/gnikolopoulos/woocommerce-orphan-images · website

1stars
0forks

Install

No release zip yet. The repository archive installs, but the folder name will carry the branch suffix and updates will not flow:

wp plugin install https://github.com/gnikolopoulos/woocommerce-orphan-images/archive/refs/heads/master.zip

Readme

WooCommerce Orphan Images

This simple plugin allow you to quickly and easily find images that are not used in products and delete them.

Description

This plugin adds a button to the Media Library list vew that runs a custom SQL query. This query populates a custom database table with all the attachment ids that are not being used in any product as main image or media gallery image.

There is also an option to ignore certain images that are used in pages, posts etc by adding them to another custom table.

Finally, the plugin adds 2 options to the attachment filter dropdown. The first allows you to see the images that are considered orphans and the second one allow you to see the images that you have ignored.

Installation

  1. Upload plugin files to the /wp-content/plugins/wc-orphan-images directory
  2. Activate the plugin through the 'Plugins' menu in WordPress
  3. Visit your Media Library and click the Update ohpan images table button to populate the table
  4. Choose the Orphan Images dropdown uption to see the images that are considered orphans. You can choose to delete or ignore them
  5. Choose the Ignored images dropdown option to see the images that have been ignored. You can un-ignore them if you wish

Frequently Asked Questions

Does this scan for images inside pages/posts/product descriptions etc?

No, this only scans for images that are used as main images or media gallery images.

Changelog

1.0

  • Initial release

Read the full README on GitHub →