do_action( 'wp_insert_comment', int $id, WP_Comment $comment )

Fires immediately after a comment is inserted into the database.


Parameters

$id

The comment ID.

$comment

Comment object.


Source

File: wp-includes/comment.php

View on GitHub



Changelog

Changelog
Version Description
2.8.0 Introduced.