apply_filters( ‘wp_prepare_attachment_for_js’, array $response, WP_Post $attachment, array|false $meta )

In this article

Filters the attachment data prepared for JavaScript.

Parameters

$responsearray
Array of prepared attachment data. See wp_prepare_attachment_for_js().
$attachmentWP_Post
Attachment object.
$metaarray|false
Array of attachment meta data, or false if there is none.

Source

return apply_filters( 'wp_prepare_attachment_for_js', $response, $attachment, $meta );

Changelog

VersionDescription
3.5.0Introduced.

User Contributed Notes

You must log in before being able to contribute a note or feedback.