Filter hook 'wp_prepare_attachment_for_js'

in WP Core File wp-includes/media.php at line 4555

Description

Filters the attachment data prepared for JavaScript.

Occurrences

Filename Line Number
wp-includes/media.php 4555

Parameters

Type Name Description
array $response Array of prepared attachment data. See {@see wp_prepare_attachment_for_js()}.
WP_Post $attachment Attachment object.
array|false $meta Array of attachment meta data, or false if there is none.

PHP Doc

/**
	 * Filters the attachment data prepared for JavaScript.
	 *
	 * @since 3.5.0
	 *
	 * @param array       $response   Array of prepared attachment data. See {@see wp_prepare_attachment_for_js()}.
	 * @param WP_Post     $attachment Attachment object.
	 * @param array|false $meta       Array of attachment meta data, or false if there is none.
	 */