{"id":409042,"date":"2026-11-25T17:04:52","date_gmt":"2026-11-25T17:04:52","guid":{"rendered":"https:\/\/wordpress.org\/plugins\/pcio-vis-media-files\/"},"modified":"2026-11-25T17:04:38","modified_gmt":"2026-11-25T17:04:38","slug":"pcio-vis-media-files","status":"publish","type":"plugin","link":"https:\/\/wordpress.org\/plugins\/pcio-vis-media-files\/","author":20981457,"comment_status":"closed","ping_status":"closed","template":"","meta":{"version":"1.0.0","stable_tag":"1.0.0","tested":"7.2","requires":"6.2","requires_php":"8.1","requires_plugins":null,"header_name":"PCIO VIS Media Files","header_author":"PCIO","header_description":"Maintains an inventory of media files used on the site, logs external media links, lists media used by PCIO VIS events and documents, and finds unused files in the uploads folder.","last_updated":"2026-11-25 17:04:38","external_support_url":"","external_repository_url":"","donate_link":"","header_plugin_uri":"https:\/\/www.pcio.dk\/","header_author_uri":"https:\/\/www.pcio.dk","rating":0,"author_block_rating":0,"active_installs":0,"downloads":27,"num_ratings":0,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","faq","changelog"],"tags":{"1.0.0":{"tag":"1.0.0","author":"pcio","date":"2026-11-25 17:04:38","revision":3823423}},"upgrade_notice":[],"ratings":[],"assets_icons":{"icon-128x128.png":{"filename":"icon-128x128.png","revision":3823422,"resolution":"128x128","location":"assets","locale":"","width":128,"height":128},"icon-256x256.png":{"filename":"icon-256x256.png","revision":3823422,"resolution":"256x256","location":"assets","locale":"","width":256,"height":256}},"assets_banners":{"banner-1544x500.png":{"filename":"banner-1544x500.png","revision":3823422,"resolution":"1544x500","location":"assets","locale":"","width":1544,"height":500},"banner-772x250.png":{"filename":"banner-772x250.png","revision":3823422,"resolution":"772x250","location":"assets","locale":"","width":772,"height":250}},"assets_blueprints":{},"all_blocks":[],"tagged_versions":["1.0.0"],"block_files":[],"assets_screenshots":{"screenshot-1.jpg":{"filename":"screenshot-1.jpg","revision":3823422,"resolution":"1","location":"assets","locale":"","width":1411,"height":889}},"screenshots":{"1":"Under WP Admin Vis menu, you find the Media files link. Here you can see unused files and delete them."}},"plugin_section":[],"plugin_tags":[4658,88,84,85,295385],"plugin_category":[50],"plugin_contributors":[265152],"plugin_business_model":[],"class_list":["post-409042","plugin","type-plugin","status-publish","hentry","plugin_tags-clean-up","plugin_tags-files","plugin_tags-media","plugin_tags-uploads","plugin_tags-vis","plugin_category-media","plugin_contributors-pcio","plugin_committers-pcio"],"banners":{"banner":"https:\/\/ps.w.org\/pcio-vis-media-files\/assets\/banner-772x250.png?rev=3823422","banner_2x":"https:\/\/ps.w.org\/pcio-vis-media-files\/assets\/banner-1544x500.png?rev=3823422","banner_rtl":false,"banner_2x_rtl":false},"icons":{"svg":false,"icon":"https:\/\/ps.w.org\/pcio-vis-media-files\/assets\/icon-128x128.png?rev=3823422","icon_2x":"https:\/\/ps.w.org\/pcio-vis-media-files\/assets\/icon-256x256.png?rev=3823422","generated":false},"screenshots":[{"src":"https:\/\/ps.w.org\/pcio-vis-media-files\/assets\/screenshot-1.jpg?rev=3823422","caption":"Under WP Admin Vis menu, you find the Media files link. Here you can see unused files and delete them."}],"raw_content":"<!--section=description-->\n<p>PCIO VIS Media Files is an extension for PCIO VIS Member Event. It adds a <strong>Vis \u2192 Media Files<\/strong> screen with three lists:<\/p>\n\n<h4>Used media<\/h4>\n\n<ul>\n<li><strong>Scan site<\/strong> walks published pages, posts and public custom post types and records local media URLs found in content, inline styles, srcset attributes and featured images.<\/li>\n<li>The site logo and site icon are included.<\/li>\n<li>External media links are not added to the list; they are recorded as warnings in the scan log.<\/li>\n<li>Rows can be added, edited and deleted by hand.<\/li>\n<\/ul>\n\n<h4>Vis events &amp; documents<\/h4>\n\n<ul>\n<li>Lists every WordPress attachment referenced by the Vis events table (<code>image_id<\/code>, <code>thumb_image_id<\/code>) and the documents table (<code>wp_attachment_id<\/code>), with a link to each attachment.<\/li>\n<\/ul>\n\n<h4>Unused uploads<\/h4>\n\n<ul>\n<li>Lists Media Library attachments and orphan files in the uploads folder that neither of the first two lists references.<\/li>\n<li>Paginated (250 files per page); Select all selects only the files on the current page.<\/li>\n<li><strong>Move to Used media<\/strong> records the selected files in the used inventory (so they leave this list and appear under Used media).<\/li>\n<li>Select files and delete them permanently. Attachments are removed with <code>wp_delete_attachment()<\/code> (including generated sizes); orphan files are removed from disk.<\/li>\n<li>Both actions re-validate the selection against a fresh scan; all paths are confined to the uploads folder.<\/li>\n<\/ul>\n\n<h4>Scan log<\/h4>\n\n<ul>\n<li>Shows scan results newest first. External media links and other issues are highlighted as warnings\/errors.<\/li>\n<\/ul>\n\n<!--section=installation-->\n<ol>\n<li>Upload the <code>pcio-vis-media-files<\/code> directory to <code>\/wp-content\/plugins\/<\/code>.<\/li>\n<li>Activate the plugin in <strong>Plugins<\/strong>. PCIO VIS Member Event must be active.<\/li>\n<li>Open <strong>Vis \u2192 Media Files<\/strong>.<\/li>\n<\/ol>\n\n<p>The plugin creates two tables (<code>me_media_files<\/code>, <code>me_media_scan_log<\/code>). The screen uses the core Vis settings capability (<code>vis_manage_settings<\/code>), the same capability that gates the other Vis settings pages.<\/p>\n\n<!--section=faq-->\n<dl>\n<dt id=\"does%20scanning%20delete%20anything%3F\"><h3>Does scanning delete anything?<\/h3><\/dt>\n<dd><p>No. Scanning only rebuilds the inventory and the scan log. Deleting files is a separate, explicit action in the Unused uploads list.<\/p><\/dd>\n<dt id=\"why%20is%20a%20file%20i%20know%20is%20in%20use%20listed%20as%20unused%3F\"><h3>Why is a file I know is in use listed as unused?<\/h3><\/dt>\n<dd><p>The scan reads published site content and the Vis tables. Media referenced only by theme settings, widgets, custom CSS or third-party plugin data may not be discovered. Review the list before deleting; the selection is re-checked against a fresh scan.<\/p><\/dd>\n<dt id=\"are%20external%20images%20downloaded%3F\"><h3>Are external images downloaded?<\/h3><\/dt>\n<dd><p>No. External media links are only reported in the scan log as warnings.<\/p><\/dd>\n\n<\/dl>\n\n<!--section=changelog-->\n<h4>1.0.0<\/h4>\n\n<ul>\n<li>Initial release: site media scan, used-media CRUD, Vis events\/documents media list, unused uploads cleaner and scan log.<\/li>\n<\/ul>","raw_excerpt":"Inventory of media files used on the site and in PCIO VIS Member Event, with a scanner, external-link warnings and an unused-uploads cleaner.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/409042","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=409042"}],"author":[{"embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/pcio"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=409042"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=409042"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=409042"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=409042"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=409042"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=409042"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}