wpseek.com
A WordPress-centric search engine for devs and theme authors



wp_prepare_attachment_for_js › WordPress Filter Hooks

Since3.5.0
Deprecatedn/a
apply_filters( 'wp_prepare_attachment_for_js', $response, $attachment, $meta )
Parameters: (3)
  • () response Array of prepared attachment data. See {@see \wp_prepare_attachment_for_js()}.
    Required: Yes
  • () attachment Attachment object.
    Required: Yes
  • () 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 );