wpseek.com
Un motore di ricerca WordPress per sviluppatori e autori di temi



comment_post › WordPress Action Hooks

Da4.5.0
Deprecaton/a
› do_action( 'comment_post', $comment_id, $commentdata['comment_approved'], $commentdata )
Parametri: (3)
  • () comment_id The comment ID.
    Richiesto: Sì
  • () comment_approved 1 if the comment is approved, 0 if not, 'spam' if spam.
    Richiesto: Sì
  • () commentdata Comment data.
    Richiesto: Sì
Definito a:
Codex:

Fires immediately after a comment is inserted into the database.





Sorgenti

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