Fires immediately after a comment is inserted into the database.
$idint
$commentWP_Comment
do_action( 'wp_insert_comment', $id, $comment );
| Version | Description |
|---|---|
| 2.8.0 | Introduced. |
© 2003–2024 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/wp_insert_comment