A WordPress-centric search engine for devs and theme authors



comment_post ›

Since4.5.0
Deprecatedn/a
do_action( 'comment_post', $comment_ID, $commentdata['comment_approved'], $commentdata )
Parameters: (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
Defined at:
Codex:

Fires immediately after a comment is inserted into the database.





Source

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