Title: s404 Orphaned Attachment Scanner
Author: surviving404
Published: <strong>19 ມິຖຸນາ 2026</strong>
Last modified: 19 ມິຖຸນາ 2026

---

ຄົ້ນຫາປລັກອິນ

![](https://ps.w.org/s404-orphaned-attachment-scanner/assets/banner-772x250.png?
rev=3578299)

![](https://ps.w.org/s404-orphaned-attachment-scanner/assets/icon-256x256.png?rev
=3578299)

# s404 Orphaned Attachment Scanner

 ໂດຍ [surviving404](https://profiles.wordpress.org/surviving404/)

[ດາວໂຫຼດ](https://downloads.wordpress.org/plugin/s404-orphaned-attachment-scanner.1.1.4.zip)

 * [ລາຍລອຽດ](https://lo.wordpress.org/plugins/s404-orphaned-attachment-scanner/#description)
 * [ການຣີວິວ](https://lo.wordpress.org/plugins/s404-orphaned-attachment-scanner/#reviews)
 *  [ການຕິດຕັ້ງ](https://lo.wordpress.org/plugins/s404-orphaned-attachment-scanner/#installation)
 * [ການພັດທະນາ](https://lo.wordpress.org/plugins/s404-orphaned-attachment-scanner/#developers)

 [ການຊ່ວຍເຫຼືອ](https://wordpress.org/support/plugin/s404-orphaned-attachment-scanner/)

## ຄຳອະທິບາຍ

**s404 Orphaned Attachment Scanner** helps you find and remove media files that 
are sitting in your WordPress Media Library but are not used anywhere in your installation—
not in posts, pages, widgets, theme customizer, ACF fields, WooCommerce products,
page-builder data, or any active plugin’s settings.

#### Features

 * **Batched AJAX scan** — never times out on large libraries
 * **9 detection layers** — post content, post meta, featured images, widgets, theme
   customizer, ACF, WooCommerce, page builders (Elementor, Beaver Builder, Divi,
   Bricks…), ALL active plugin wp_options
 * **Filesystem scan** — checks theme files and optionally the entire WP installation
   for hard-coded references
 * **Format filtering** — scan only images, video, audio, documents, or specific
   formats (JPEG, PNG, WebP, SVG…)
 * **Age threshold** — only flag files older than N days, protecting freshly uploaded
   assets
 * **Trash & Permanent Delete** — move items to Trash for safety (requires `define('
   MEDIA_TRASH', true);` in your `wp-config.php` to enable the media bin)
 * **Deletion log** — every action is recorded with timestamp and username in your
   local history
 * **Bulk actions** — select, trash, delete, exclude, or export to CSV
 * **Exclusion list** — permanently hide specific IDs, MIME types, or path patterns
   from scan results
 * **Scheduled scans** — WP-Cron with daily/weekly/monthly frequency and optional
   email report
 * **Developer hooks** — `s404as_is_attachment_used` filter, `s404as_before_delete`/`
   s404as_after_delete` actions

#### Usage

 1. Go to **Tools  S404OrphanedAttachmentScanner**
 2. Optionally select format filters
 3. Click **Start Scan**
 4. Review results — preview thumbnails, file sizes, MIME types
 5. Select items and use bulk actions, or use per-row buttons
 6. Export a CSV for your records before deleting

## ພາບໜ້າຈໍ

[⌊Dashboard — scan controls with format filters⌉⌊Dashboard — scan controls with 
format filters⌉[

Dashboard — scan controls with format filters

[⌊Results table — sorted by file size with bulk actions⌉⌊Results table — sorted 
by file size with bulk actions⌉[

Results table — sorted by file size with bulk actions

## ການຕິດຕັ້ງ

 1. Upload the `s404-orphaned-attachment-scanner` folder to `/wp-content/plugins/`
 2. Activate through **Plugins  Installed Plugins**
 3. Navigate to **Tools  S404OrphanedAttachmentScanner**

## ຄຳຖາມທີ່ພົບເລື້ອຍ

### Will this delete anything automatically?

No. The plugin never deletes anything automatically. All destructive actions require
explicit user confirmation.

### What is the “Filesystem” detector?

It searches your active theme’s PHP/HTML/JS/CSS files for any hard-coded references
to an image’s filename or URL. You can also enable full-installation scanning (all
files under ABSPATH) in Settings.

### Can I protect specific images from being flagged?

Yes — add their attachment IDs to the Exclusions list in Settings, or click the “
Exclude” button on any result row.

### Does it work with WooCommerce / ACF / Elementor?

Yes. The relevant detectors activate automatically when those plugins are present.

### Why is the “Trash” button not working or missing in Media Library?

By default, WordPress disables the recycle bin for media files. To enable it and
make the “Move to Trash” button functional, add this line to your `wp-config.php`
file:
 define( ‘MEDIA_TRASH’, true );

### What PHP version is required?

PHP 7.4 or higher.

## ການຣີວິວ

ບໍ່ມີການຣີວິວສຳລັບປລັກອິນນີ້.

## ຜູ້ຮ່ວມພັດທະນາ ແລະ ຜູ້ພັດທະນາ

“s404 Orphaned Attachment Scanner” ແມ່ນຊອຟແວໂອເພັນຊອດ (Open Source). ບຸກຄົນຕໍ່ໄປນີ້
ໄດ້ມີສ່ວນຮ່ວມໃນການພັດທະນາປລັກອິນນີ້.

ຜູ້ຮ່ວມພັດທະນາ

 *   [ surviving404 ](https://profiles.wordpress.org/surviving404/)

[ແປ “s404 Orphaned Attachment Scanner” ເປັນພາສາຂອງເຈົ້າ.](https://translate.wordpress.org/projects/wp-plugins/s404-orphaned-attachment-scanner)

### ສົນໃຈຮ່ວມພັດທະນາບໍ່?

[ເບິ່ງລະຫັດ](https://plugins.trac.wordpress.org/browser/s404-orphaned-attachment-scanner/),
ກວດເບິ່ງ [ຄັງເກັບ SVN](https://plugins.svn.wordpress.org/s404-orphaned-attachment-scanner/),
ຫຼື ຕິດຕາມ [ບັນທຶກການພັດທະນາ](https://plugins.trac.wordpress.org/log/s404-orphaned-attachment-scanner/)
ຜ່ານ [RSS](https://plugins.trac.wordpress.org/log/s404-orphaned-attachment-scanner/?limit=100&mode=stop_on_copy&format=rss).

## ບັນທຶກການປ່ຽນແປງ

#### 1.0.0

 * Initial release

## ຂໍ້ມູນກຳກັບ (Meta)

 *  ເວີຊັນ **1.1.4**
 *  ອັບເດດຫຼ້າສຸດເມື່ອ **3 ເດືອນ ທີ່ຜ່ານມາ** ທີ່ຜ່ານມາ
 *  ການຕິດຕັ້ງທີ່ໃຊ້ງານຢູ່ **ໜ້ອຍກວ່າ 10**
 *  ເວີຊັນ WordPress ** 6.3 ຫຼື ສູງກວ່າ **
 *  ທົດສອບເຖິງເວີຊັນ **7.1**
 *  ເວີຊັນ PHP ** 8.2 ຫຼື ສູງກວ່າ **
 *  ພາສາ
 * [English (US)](https://wordpress.org/plugins/s404-orphaned-attachment-scanner/)
 * ແທັກ
 * [attachment](https://lo.wordpress.org/plugins/tags/attachment/)[cleaner](https://lo.wordpress.org/plugins/tags/cleaner/)
   [images](https://lo.wordpress.org/plugins/tags/images/)[media](https://lo.wordpress.org/plugins/tags/media/)
   [orphaned](https://lo.wordpress.org/plugins/tags/orphaned/)
 *  [ມຸມມອງຂັ້ນສູງ](https://lo.wordpress.org/plugins/s404-orphaned-attachment-scanner/advanced/)

## ການໃຫ້ຄະແນນ

ຍັງບໍ່ມີການສົ່ງຄຳວິຈານເທື່ອ.

[ການທົບທວນຂອງທ່ານ](https://wordpress.org/support/plugin/s404-orphaned-attachment-scanner/reviews/#new-post)

[ເບິ່ງທັງໝົດ ການຣີວິວ](https://wordpress.org/support/plugin/s404-orphaned-attachment-scanner/reviews/)

## ຜູ້ຮ່ວມພັດທະນາ

 *   [ surviving404 ](https://profiles.wordpress.org/surviving404/)

## ການຊ່ວຍເຫຼືອ

ມີຄຳຖາມ ຫຼື ຕ້ອງການຄວາມຊ່ວຍເຫຼືອບໍ່?

 [ເບິ່ງຟໍຣັມການຊ່ວຍເຫຼືອ](https://wordpress.org/support/plugin/s404-orphaned-attachment-scanner/)