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



wp_insert_post_data › WordPress过滤钩子

Since6.0.0
已弃用n/a
› apply_filters( 'wp_insert_post_data', $data, $postarr, $unsanitized_postarr, $update )
参数: (4)
  • () data An array of slashed, sanitized, and processed post data.
    Required: Yes
  • () postarr An array of sanitized (and slashed) but otherwise unmodified post data.
    Required: Yes
  • () unsanitized_postarr An array of slashed yet *unsanitized* and unprocessed post data as originally passed to wp_insert_post().
    Required: Yes
  • () update Whether this is an existing post being updated.
    Required: Yes
定义在:
文档:

Filters slashed post data just before it is inserted into the database.





源码

$data = apply_filters( 'wp_insert_post_data', $data, $postarr, $unsanitized_postarr, $update );