wpseek.com
Outil de recherche WordPress pour les développeurs et auteurs de thèmes



comment_post › Les Actions WordPress

Depuis4.5.0
Dépréciéen/a
do_action( 'comment_post', $comment_id, $commentdata['comment_approved'], $commentdata )
Paramètres: (3)
  • (int) $comment_id The comment ID.
    Requis: Oui
  • (int|string) $comment_approved 1 if the comment is approved, 0 if not, 'spam' if spam.
    Requis: Oui
  • (array) $commentdata Comment data.
    Requis: Oui
Défini(e) dans:
Codex:

Fires immediately after a comment is inserted into the database.





Source

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