WordPress at a glance
action is not described

comment_post action-hook . WP 1.2.0

Fires immediately after a comment is inserted into the database.


add_action( 'comment_post', 'action_function_name_8431', 10, 3 );
function action_function_name_8431( $comment_ID, $comment_approved, $commentdata ){
	// action...
The comment ID.
1 if the comment is approved, 0 if not, 'spam' if spam.
Comment data.


Since 1.2.0 Introduced.
Since 4.5.0 The $commentdata parameter was added.

Where the hook is called

wp-includes/comment.php 2281
do_action( 'comment_post', $comment_ID, $commentdata['comment_approved'], $commentdata );

Where in WP core the hook is used WordPress

wp-includes/default-filters.php 476
add_action( 'comment_post', 'wp_new_comment_notify_moderator' );
wp-includes/default-filters.php 477
add_action( 'comment_post', 'wp_new_comment_notify_postauthor' );