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



wp_insert_attachment_data ›

Since3.9.0
已弃用n/a
apply_filters( 'wp_insert_attachment_data', $data, $postarr )
参数: (2)
  • (array) $data An array of sanitized attachment post data.
    Required: Yes
  • (array) $postarr An array of unsanitized attachment post data.
    Required: Yes
定义在:
文档:

Filters attachment post data before it is updated in or added to the database.





源码

$data = apply_filters( 'wp_insert_attachment_data', $data, $postarr );