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.


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

	return $response;
Array of prepared attachment data.
Attachment object.
Array of attachment meta data, or false if there is none.

Where the hook is called

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

Where the hook is used (in WP core)

Использование не найдено.