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



wp_update_comment_data › Hooks de Filtros WordPress

Desde5.5.0
Obsoleton/a
apply_filters( 'wp_update_comment_data', $data, $comment, $commentarr )
Parâmetros: (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
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 );