WordPress at a glance
filter is not described

wp_update_comment_data filter-hook . WP 4.7.0

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

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


add_filter( 'wp_update_comment_data', 'filter_function_name_7705', 10, 3 );
function filter_function_name_7705( $data, $comment, $commentarr ){
	// filter...

	return $data;
The new, processed comment data, or WP_Error.
The old, unslashed comment data.
The new, raw comment data.


Since 4.7.0 Introduced.
Since 5.5.0 Returning a WP_Error value from the filter will short-circuit comment update and allow skipping further processing.

Where the hook is called

wp-includes/comment.php 2512
$data = apply_filters( 'wp_update_comment_data', $data, $comment, $commentarr );

Where in WP core the hook is used WordPress

Usage not found.