wp_update_comment_data WordPress Filter Hook
The wp_update_comment_data hook is called before a comment is updated in the database. It allows you to modify the comment data before it is saved.
apply_filters( 'wp_update_comment_data', array|WP_Error $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
Source
File: wp-includes/comment.php
Changelog
Version | Description |
---|---|
5.5.0 | Returning a WP_Error value from the filter will short-circuit comment update and allow skipping further processing. |
4.7.0 | Introduced. |