A WordPress-centric search engine for devs and theme authors



wp_prepare_attachment_for_js ›

Since3.5.0
Deprecatedn/a
apply_filters( 'wp_prepare_attachment_for_js', $response, $attachment, $meta )
Parameters: (3)
  • (array) $response Array of prepared attachment data.
    Required: Yes
  • (WP_Post) $attachment Attachment object.
    Required: Yes
  • (array|false) $meta Array of attachment meta data, or false if there is none.
    Required: Yes
Defined at:
Codex:

Filters the attachment data prepared for JavaScript.





Source

return apply_filters( 'wp_prepare_attachment_for_js', $response, $attachment, $meta );