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



comment_post ›

Desde4.5.0
Obsoleton/a
do_action( 'comment_post', $comment_ID, $commentdata['comment_approved'], $commentdata )
Parâmetros: (3)
  • (int) $comment_ID The comment ID.
    Required: Yes
  • (int|string) $comment_approved 1 if the comment is approved, 0 if not, 'spam' if spam.
    Required: Yes
  • (array) $commentdata Comment data.
    Required: Yes
Definido em:
Codex:

Fires immediately after a comment is inserted into the database.





Fonte

do_action( 'comment_post', $comment_ID, $commentdata['comment_approved'], $commentdata );