Filter hook 'wp_update_comment_data'

in WP Core File wp-includes/comment.php at line 2566

Description

Filters the comment data immediately before it is updated in the database. Note: data being passed to the filter is already unslashed. and allow skipping further processing.

Occurrences

Filename Line Number
wp-includes/comment.php 2566

Parameters

Type Name Description
array|WP_Error $data The new, processed comment data, or WP_Error.
array $comment The old, unslashed comment data.
array $commentarr The new, raw comment data.

PHP Doc

/**
	 * Filters the comment data immediately before it is updated in the database.
	 *
	 * Note: data being passed to the filter is already unslashed.
	 *
	 * @since 4.7.0
	 * @since 5.5.0 Returning a WP_Error value from the filter will short-circuit comment update
	 *              and allow skipping further processing.
	 *
	 * @param array|WP_Error $data       The new, processed comment data, or WP_Error.
	 * @param array          $comment    The old, unslashed comment data.
	 * @param array          $commentarr The new, raw comment data.
	 */