Filters the attachment data prepared for JavaScript.
$responsearray$attachmentWP_Post$metaarray|falsewp-includes/media.php:4793wp_prepare_attachment_for_js() * @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. */ return apply_filters( 'wp_prepare_attachment_for_js', $response, $attachment, $meta );} /** * Enqueues all scripts, styles, settings, and templates necessary to use * all media JS APIs. *Introduced in 3.5.0. Unchanged from 6.7.7 through 7.1.0.
Signature, return type and hooks compared across 5 parsed releases.