do_action( 'comment_post', ... )

Fires immediately after a comment is inserted into the database.

Parameters:
  • $comment_id int
  • $comment_approved int | string
  • $commentdata array