wp_prepare_attachment_for_js

Advertisement

Summery Summery

Filters the attachment data prepared for JavaScript.

Syntax Syntax

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

Parameters Parameters

$response

(array) Array of prepared attachment data.

$attachment

(WP_Post) Attachment object.

$meta

(array|false) Array of attachment meta data, or false if there is none.

Source Source

File: wp-includes/media.php

Advertisement

Changelog Changelog

Changelog
Version Description
3.5.0 Introduced.

Advertisement

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.