HTTP/2 301
server: nginx
date: Sun, 28 Dec 2025 13:43:23 GMT
content-type: text/html; charset=UTF-8
x-olaf: ⛄
vary: accept, content-type
x-redirect-by: WordPress
location: https://developer.wordpress.org/reference/hooks/wp_update_comment_data/
x-frame-options: SAMEORIGIN
alt-svc: h3=":443"; ma=86400
x-nc: MISS ord 1
HTTP/2 200
server: nginx
date: Sun, 28 Dec 2025 13:43:23 GMT
content-type: text/html; charset=UTF-8
vary: Accept-Encoding
x-olaf: ⛄
vary: accept, content-type
link:
; rel="https://api.w.org/"
link:
; rel="alternate"; title="JSON"; type="application/json"
link: ; rel=shortlink
x-frame-options: SAMEORIGIN
content-encoding: gzip
alt-svc: h3=":443"; ma=86400
x-nc: MISS ord 1
wp_update_comment_data – Hook | Developer.WordPress.org
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.
Note: data being passed to the filter is already unslashed.
$dataarray|WP_ErrorThe new, processed comment data, or WP_Error. $commentarrayThe old, unslashed comment data.
$commentarrarrayThe new, raw comment data.
| 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. |
User Contributed Notes
You must log in before being able to contribute a note or feedback.