Uma área de pesquisa sobre o WordPress para devs e autores do tema



wp_update_comment_data ›

Desde4.7.0
Obsoleton/a
apply_filters( 'wp_update_comment_data', $data, $comment, $commentarr )
Parâmetros: (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
Definido em:
Codex:

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

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





Fonte

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