wpseek.com
A WordPress-centric search engine for devs and theme authors



wp_update_comment_data › WordPress Filter Hooks

Since5.5.0
Deprecatedn/a
apply_filters( 'wp_update_comment_data', $data, $comment, $commentarr )
Parameters: (3)
  • (array|WP_Error) $data The new, processed comment data, or WP_Error.
    Required: Yes
  • (array) $comment The old, unslashed comment data.
    Required: Yes
  • (array) $commentarr The new, raw comment data.
    Required: Yes
Defined at:
Codex:

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

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





Source

$data = apply_filters( 'wp_update_comment_data', $data, $comment, $commentarr );