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



wp_prepare_attachment_for_js ›

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

Filters the attachment data prepared for JavaScript.





源码

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