wpseek.com
WordPress开发者和主题制作者的搜索引擎



wp_prepare_attachment_for_js › WordPress过滤钩子

Since3.5.0
已弃用n/a
› apply_filters( 'wp_prepare_attachment_for_js', $response, $attachment, $meta )
参数: (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
定义在:
文档:

Filters the attachment data prepared for JavaScript.





源码

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