Attachments are explicitly ignored by `ContentSensor`, so the media library is a complete blind spot — uploads, edits and deletions of files are never logged. WSAL/Stream-class plugins all cover this.
Proposal — new `MediaSensor`
| Code |
Event |
Hook |
| 2010 |
Attachment uploaded |
`add_attachment` |
| 2011 |
Attachment updated (title/alt/caption, image edited) |
`attachment_updated`, `wp_update_attachment_metadata` |
| 2012 |
Attachment permanently deleted |
`delete_attachment` |
Metadata: attachment ID, filename, MIME type, file size, parent post.
Attachments are explicitly ignored by `ContentSensor`, so the media library is a complete blind spot — uploads, edits and deletions of files are never logged. WSAL/Stream-class plugins all cover this.
Proposal — new `MediaSensor`
Metadata: attachment ID, filename, MIME type, file size, parent post.