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



wp_update_comment_data › WordPress过滤钩子

Since5.5.0
已弃用n/a
apply_filters( 'wp_update_comment_data', $data, $comment, $commentarr )
参数: (3)
  • (array|WP_Error) $data The new, processed comment data, or WP_Error.
    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 );