{"id":51123,"date":"2016-09-27T21:49:41","date_gmt":"2016-09-27T21:49:41","guid":{"rendered":"https:\/\/wordpress.org\/plugins-wp\/clean-unused-medias\/"},"modified":"2021-07-20T19:59:19","modified_gmt":"2021-07-20T19:59:19","slug":"clean-unused-medias","status":"publish","type":"plugin","link":"https:\/\/os.wordpress.org\/plugins\/clean-unused-medias\/","author":13559231,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_crdt_document":"","version":"1.10","stable_tag":"1.10","tested":"5.8.13","requires":"4.6.1","requires_php":"","requires_plugins":"","header_name":"Clean Unused Medias","header_author":"Xuan NGUYEN","header_description":"","assets_banners_color":"f6f6f7","last_updated":"2021-07-20 19:59:19","external_support_url":"","external_repository_url":"","donate_link":"http:\/\/goo.gl\/SORljr","header_plugin_uri":"https:\/\/xuxu.fr\/2016\/09\/28\/supprimer-les-fichiers-non-utilises-sous-wordpress\/","header_author_uri":"https:\/\/xuxu.fr","rating":3.8,"author_block_rating":0,"active_installs":100,"downloads":8571,"num_ratings":5,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","faq","changelog"],"tags":{"1.00":{"tag":"1.00","author":"xuxu.fr","date":"2016-09-27 21:49:41"},"1.01":{"tag":"1.01","author":"xuxu.fr","date":"2016-09-27 23:31:25"},"1.02":{"tag":"1.02","author":"xuxu.fr","date":"2016-09-28 12:14:53"},"1.03":{"tag":"1.03","author":"xuxu.fr","date":"2016-09-30 12:52:39"},"1.04":{"tag":"1.04","author":"xuxu.fr","date":"2016-10-01 01:11:19"},"1.05":{"tag":"1.05","author":"xuxu.fr","date":"2016-10-02 17:41:11"},"1.06":{"tag":"1.06","author":"xuxu.fr","date":"2016-10-02 17:41:11"},"1.07":{"tag":"1.07","author":"xuxu.fr","date":"2016-10-06 08:11:26"},"1.08":{"tag":"1.08","author":"xuxu.fr","date":"2016-10-07 08:29:18"},"1.09":{"tag":"1.09","author":"xuxu.fr","date":"2021-07-18 23:12:52"},"1.10":{"tag":"1.10","author":"xuxu.fr","date":"2021-07-20 19:59:19"}},"upgrade_notice":{"1.09":"<ol>\n<li>Just verify if it works with the latest version of WordPress. Waiting for some times and ideas to add more features \\o\/<\/li>\n<\/ol>","1.08":"<ol>\n<li>The update post meta log was outside the loop :\/<\/li>\n<li>Filter some <code>option_name<\/code>in the crawler<\/li>\n<li>Display the hashtags and show more details in media library<\/li>\n<\/ol>","1.07":"<ol>\n<li>Store where the media is used (in content, post \/ user meta, option, ACF field) while crawling<\/li>\n<li>Show in a popin the details about where is used the media<\/li>\n<li>Remove sql LIMIT check :\/<\/li>\n<\/ol>","1.06":"<ol>\n<li>New filters incoming : Not in <code>wp_options<\/code>, <code>wp_postmeta<\/code> <code>wp_usermeta<\/code><\/li>\n<li>Fix filters problem and debug\/improve crawler &amp; WP-Cron task<\/li>\n<li>Add some notices<\/li>\n<\/ol>","1.05":"<ol>\n<li>If you use the feature WordPress Customise Theme, media used for the favicon will not be listed<\/li>\n<li>The crawler now search for media URL and thumbs URL in <code>wp_options<\/code>, <code>wp_postmeta<\/code> and <code>wp_usermeta<\/code> (the media URL can be used for theme cutomization, widgets, or other themes and plugins)<\/li>\n<\/ol>","1.04":"<ol>\n<li>The plugin check if the media ID is used the shortcode [gallery] (for example : [gallery ids=&quot;1234,5678,90&quot;])<\/li>\n<li>I really don&#039;t remember ;)<\/li>\n<li>It looks like more professionnal u_u<\/li>\n<\/ol>","1.03":"<ol>\n<li>A loading bar to visualize the crawl progress<\/li>\n<li>Reload the results if every medias displayed have been deleted<\/li>\n<li>You can pause and resume the crawler when you want<\/li>\n<li>You can filter the results by typing some keywords (matching on <code>post_title<\/code>, <code>post_content<\/code> and <code>post_name<\/code>)<\/li>\n<li>If you upload new medias since the last crawl was completed, the process will be resumed to check again<\/li>\n<\/ol>","1.02":"<ol>\n<li>Move .mo &amp; .po in sub directory languages<\/li>\n<li>Set &quot;valid&quot; text-domain : &quot;clean-unused-medias&quot; (without underscore)<\/li>\n<\/ol>","1.01":"<ol>\n<li>Fix security issues after first review by the Team WordPress<\/li>\n<\/ol>"},"ratings":{"1":1,"2":0,"3":1,"4":0,"5":3},"assets_icons":{"icon-256x256.png":{"filename":"icon-256x256.png","revision":2566778,"resolution":"256x256","location":"assets","locale":""}},"assets_banners":{"banner-772x250.png":{"filename":"banner-772x250.png","revision":2566778,"resolution":"772x250","location":"assets","locale":""}},"assets_blueprints":{},"all_blocks":[],"tagged_versions":["1.00","1.01","1.02","1.03","1.04","1.05","1.06","1.07","1.08","1.09","1.10"],"block_files":[],"assets_screenshots":{"screenshot-1.png":{"filename":"screenshot-1.png","revision":2566778,"resolution":"1","location":"assets","locale":""},"screenshot-2.png":{"filename":"screenshot-2.png","revision":2566778,"resolution":"2","location":"assets","locale":""},"screenshot-3.png":{"filename":"screenshot-3.png","revision":2566778,"resolution":"3","location":"assets","locale":""},"screenshot-4.png":{"filename":"screenshot-4.png","revision":2566778,"resolution":"4","location":"assets","locale":""},"screenshot-5.png":{"filename":"screenshot-5.png","revision":2566778,"resolution":"5","location":"assets","locale":""},"screenshot-6.png":{"filename":"screenshot-6.png","revision":2566778,"resolution":"6","location":"assets","locale":""}},"screenshots":{"1":"Dashboard","2":"This media is used in the post content","3":"This media is used as a featured image \/ post thumbnail","4":"This media is used anywhere","5":"You can check their status in the media list","6":"And know if the media is used somewhere"},"jetpack_post_was_ever_published":false},"plugin_section":[],"plugin_tags":[2211,2217,2264,4657,84],"plugin_category":[50,52,59],"plugin_contributors":[171151],"plugin_business_model":[],"class_list":["post-51123","plugin","type-plugin","status-publish","hentry","plugin_tags-acf","plugin_tags-advanced-custom-fields","plugin_tags-attachment","plugin_tags-clean","plugin_tags-media","plugin_category-media","plugin_category-performance","plugin_category-utilities-and-tools","plugin_contributors-xuxufr","plugin_committers-xuxufr"],"banners":{"banner":"https:\/\/ps.w.org\/clean-unused-medias\/assets\/banner-772x250.png?rev=2566778","banner_2x":false,"banner_rtl":false,"banner_2x_rtl":false},"icons":{"svg":false,"icon":"https:\/\/ps.w.org\/clean-unused-medias\/assets\/icon-256x256.png?rev=2566778","icon_2x":"https:\/\/ps.w.org\/clean-unused-medias\/assets\/icon-256x256.png?rev=2566778","generated":false},"screenshots":[{"src":"https:\/\/ps.w.org\/clean-unused-medias\/assets\/screenshot-1.png?rev=2566778","caption":"Dashboard"},{"src":"https:\/\/ps.w.org\/clean-unused-medias\/assets\/screenshot-2.png?rev=2566778","caption":"This media is used in the post content"},{"src":"https:\/\/ps.w.org\/clean-unused-medias\/assets\/screenshot-3.png?rev=2566778","caption":"This media is used as a featured image \/ post thumbnail"},{"src":"https:\/\/ps.w.org\/clean-unused-medias\/assets\/screenshot-4.png?rev=2566778","caption":"This media is used anywhere"},{"src":"https:\/\/ps.w.org\/clean-unused-medias\/assets\/screenshot-5.png?rev=2566778","caption":"You can check their status in the media list"},{"src":"https:\/\/ps.w.org\/clean-unused-medias\/assets\/screenshot-6.png?rev=2566778","caption":"And know if the media is used somewhere"}],"raw_content":"<!--section=description-->\n<p>Clean Unused Medias, another simple way to delete the medias you don't need anymore.<\/p>\n\n<p>List the medias you don't used anymore.<\/p>\n\n<p>Works with post, page, custom post type, and ACF (Advanced Custom Fields).<\/p>\n\n<p>Filters available :<\/p>\n\n<ul>\n<li>The media used as site favicon<\/li>\n<li>The medias used as post thumbnail<\/li>\n<li>The medias uploaded in a post (and so related to it)<\/li>\n<li>The medias used in ACF fields (image and file)<\/li>\n<li>The medias' URL inserted or used in a post content<\/li>\n<li>The medias' URL inserted or used in <code>wp_postmeta<\/code><\/li>\n<li>The medias' URL inserted or used in <code>wp_usermeta<\/code><\/li>\n<li>The medias' URL inserted or used in <code>wp_options<\/code><\/li>\n<\/ul>\n\n<p>Page dedicated to this plugin : https:\/\/xuxu.fr\/2016\/09\/28\/supprimer-les-fichiers-non-utilises-sous-wordpress\/<\/p>\n\n<p>You can contact me on :<\/p>\n\n<ul>\n<li>My blog: https:\/\/xuxu.fr\/contact<\/li>\n<li>My Twitter account:  https:\/\/twitter.com\/xuxu<\/li>\n<\/ul>\n\n<p>You can donate here ^_^ : http:\/\/goo.gl\/SORljr<\/p>\n\n<!--section=installation-->\n<ol>\n<li>Extract and upload the directory <code>clean-unused-medias<\/code> to the <code>\/wp-content\/plugins\/<\/code> directory.<\/li>\n<li>Activate the plugin through the 'Plugins' menu in WordPress.<\/li>\n<li>Go to Medias -&gt; Clean Unused Medias menu.<\/li>\n<li>Enjoy.<\/li>\n<\/ol>\n\n<!--section=faq-->\n<dl>\n<dt id='why%20a%20crawler%20%3F'><h3>Why a crawler ?<\/h3><\/dt>\n<dd><p>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.<\/p><\/dd>\n\n<\/dl>\n\n<!--section=changelog-->\n<h4>1.10<\/h4>\n\n<ol>\n<li>Clean and fix scripts<\/li>\n<li>Test up with WordPress 5.7.2<\/li>\n<\/ol>\n\n<h4>1.09<\/h4>\n\n<ol>\n<li>Test with WordPress 4.7.1 : no problem o\/<\/li>\n<\/ol>\n\n<h4>1.08<\/h4>\n\n<ol>\n<li>Fix log where the media is used<\/li>\n<li>Improve the crawler<\/li>\n<li>Hashtags and popin details available in media library<\/li>\n<\/ol>\n\n<h4>1.07<\/h4>\n\n<ol>\n<li>Log where the file is used<\/li>\n<li>Display where the media is used<\/li>\n<li>Fix ACF check error<\/li>\n<\/ol>\n\n<h4>1.06<\/h4>\n\n<ol>\n<li>Add more filters<\/li>\n<li>Improve the crawl and fix some errors<\/li>\n<li>Add some notices<\/li>\n<\/ol>\n\n<h4>1.05<\/h4>\n\n<ol>\n<li>Site favicon are now not considered as unused<\/li>\n<li>Improve the crawler : search now in <code>wp_options<\/code>, <code>wp_postmeta<\/code> and <code>wp_usermeta<\/code><\/li>\n<\/ol>\n\n<h4>1.04<\/h4>\n\n<ol>\n<li>Check if the media ID is used in the content with the native WordPress shortcode [gallery]<\/li>\n<li>Minor user interface changes<\/li>\n<li>Add plugin icon :)<\/li>\n<\/ol>\n\n<h4>1.03<\/h4>\n\n<ol>\n<li>Add progress bar <\/li>\n<li>Refresh results after deleting all medias<\/li>\n<li>Pause and resume the crawler<\/li>\n<li>Filter the results with keyword<\/li>\n<li>Resume the crawl if new medias were uploaded<\/li>\n<\/ol>\n\n<h4>1.02<\/h4>\n\n<ol>\n<li>Make it really Translate ready! :p<\/li>\n<\/ol>\n\n<h4>1.01<\/h4>\n\n<ol>\n<li>Fix security issues<\/li>\n<li>Translate ready!<\/li>\n<li>Add French translation<\/li>\n<li>Add WordPress notices<\/li>\n<li>Minor changes<\/li>\n<\/ol>\n\n<h4>1.00<\/h4>\n\n<p>Welcome!<\/p>","raw_excerpt":"Clean Unused Medias, another simple way to delete the medias you don&#039;t need anymore.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/os.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/51123","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/os.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/os.wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/os.wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=51123"}],"author":[{"embeddable":true,"href":"https:\/\/os.wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/xuxufr"}],"wp:attachment":[{"href":"https:\/\/os.wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=51123"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/os.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=51123"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/os.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=51123"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/os.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=51123"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/os.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=51123"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/os.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=51123"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}