apply_filters( 'wp_prepare_attachment_for_js', array $response, int|object $attachment, array $meta )

Filters the attachment data prepared for JavaScript.


Parameters

$response

Array of prepared attachment data.

$attachment

Attachment ID or object.

$meta

Array of attachment meta data.


Source

File: wp-includes/media.php

View on GitHub



Changelog

Changelog
Version Description
WP-3.5.0 Introduced.