Files
Filename | Hook Type | Line Number | PHP Doc |
---|---|---|---|
wp-includes/comment.php | apply_filters | 2563 | /** * 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. */ |
Hook Parameters
Parameter 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. |