do_action( ‘wp_insert_comment’, int $id, WP_Comment $comment )

Fires immediately after a comment is inserted into the database.

Parameters

$idint
The comment ID.
$commentWP_Comment
Comment object.

Source

do_action( 'wp_insert_comment', $id, $comment );

Changelog

VersionDescription
2.8.0Introduced.

User Contributed Notes

You must log in before being able to contribute a note or feedback.