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_163', 10, 3 );
function action_function_name_163( $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 2276
do_action( 'comment_post', $comment_ID, $commentdata['comment_approved'], $commentdata );

Where in WP core the hook is used WordPress

wp-includes/comment.php 447
add_action( 'comment_post', 'wp_new_comment_notify_moderator' );
wp-includes/comment.php 448
add_action( 'comment_post', 'wp_new_comment_notify_postauthor' );