WordPress at a glance
filter is not described

wp_prepare_attachment_for_js filter-hook . WP 3.5.0

Filters the attachment data prepared for JavaScript.

Usage

add_filter( 'wp_prepare_attachment_for_js', 'filter_function_name_6116', 10, 3 );
function filter_function_name_6116( $response, $attachment, $meta ){
	// filter...

	return $response;
}
$response(array)
Array of prepared attachment data.
$attachment(int/object)
Attachment ID or object.
$meta(array)
Array of attachment meta data.

Where the hook is called

wp_prepare_attachment_for_js()
wp-includes/media.php 3290
return apply_filters( 'wp_prepare_attachment_for_js', $response, $attachment, $meta );

Where the hook is used (in WP core)

Does not used.