W3cubDocs

/WordPress

apply_filters( 'wp_update_comment_data', array $data, array $comment, array $commentarr )

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

Description

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

Parameters

$data

(array) The new, processed comment data.

$comment

(array) The old, unslashed comment data.

$commentarr

(array) The new, raw comment data.

Source

File: wp-includes/comment.php

View on Trac

Changelog

Version Description
4.7.0 Introduced.

© 2003–2019 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/wp_update_comment_data