Skip to content

New core sensor: media / attachment lifecycle #7

Description

@trueqap

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions