=== DNUI Delete not used image===
Contributors: nicearma
Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=DX8UCXHB6RMD4&lc=US&item_name=DNUI%20donation¤cy_code=USD&bn=PP%2dDonationsBF%3abtn_donate_SM%2egif%3aNonHosted
Tags: image, cleanup, images, delete, image not used, image unused, delete unused image, delete not used image, cleanup image
Requires at least: 4.0
Tested up to: 4.0
Stable tag: 1.5.2
Search/Delete all not used images from the database and make space in your server and cleanup the database from all unused images
== Description ==
Again : Make backups before intence use of this plugin.
This plugin will help you to find all image in the database that are not being used/unused and give you the oportunity to cleanup the database and the server space.
You will only delete not used/unused image (based in the logic of a blog site, continue to read please), so dont worry about delete image used (if you use the DNUI backup option!!!!).
*Never use this plugin for the first time for delete all not used image, be careful because some plugin and theme can use images that this plugin will thing is not used (You have in the option menu, the ignore sizes for this)*
If you have problem with other plugin, you can ask me for helpt to adapt the code.
If you have any feedback, recommendation, comments leave me a comment in the blog or here!
How do i know if this code will work or not in my site?
The plugin work this way!!
* The plugin will search images (original and sizes) from the database
* He will search one by one (orinal and sizes) the if one of each is used or not (the mean of used or not, it's if the image nicearma.png have one page or post with the same value Ex:
)
* He will search all post/page with gallery (if the option is checked) and try to find the match with the image id (matching to the original and size images)
This plugin will not work fine if:
* You use some lazy image plugin
* You dont have the html code of ![]()