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



wp_update_comment_data ›

Since4.7.0
已弃用n/a
apply_filters( 'wp_update_comment_data', $data, $comment, $commentarr )
参数: (3)
  • (array) $data The new, processed comment data.
    Required: Yes
  • (array) $comment The old, unslashed comment data.
    Required: Yes
  • (array) $commentarr The new, raw comment data.
    Required: Yes
定义在:
文档:

Filters the comment data immediately before it is updated in the database.

Note: data being passed to the filter is already unslashed.





源码

$data = apply_filters( 'wp_update_comment_data', $data, $comment, $commentarr );