A WordPress-centric search engine for devs and theme authors



wp_update_comment_data ›

Since4.7.0
Deprecatedn/a
apply_filters( 'wp_update_comment_data', $data, $comment, $commentarr )
Parameters: (3)
  • (array) $data The new, processed comment data.
    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 );