On this page
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
File: wp-includes/comment.php. View all references
do_action( 'wp_insert_comment', $id, $comment );
Related
Used By
| Used By | Description |
|---|---|
| wp_insert_comment() wp-includes/comment.php | Inserts a comment into the database. |
Changelog
| Version | Description |
|---|---|
| 2.8.0 | Introduced. |
© 2003–2022 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/wp_insert_comment