WordPress hook directory
wp_insert_comment

Description

Runs whenever a comment is created.

This description was scraped automatically from the WordPress filter reference or action reference. If it looks like this is the wrong description, please tell me so I can fix my code.

WordPress version history for wp_insert_comment

This database has information for all major versions from WP 1.2.1 through 5.1.

Version File Line Type
2.8 wp-includes/comment.php 903 View in context action
2.9 wp-includes/comment.php 1111 View in context action
3.0 wp-includes/comment.php 1176 View in context action
3.1 wp-includes/comment.php 1234 View in context action
3.2 wp-includes/comment.php 1245 View in context action
3.3 wp-includes/comment.php 1245 View in context action
3.4 wp-includes/comment.php 1259 View in context action
3.5 wp-includes/comment.php 1291 View in context action
3.6 wp-includes/comment.php 1293 View in context action
3.7 wp-includes/comment.php 1308 View in context action
3.8 wp-includes/comment.php 1581 View in context action
3.9 wp-includes/comment.php 1564 View in context action
4.0 wp-includes/comment.php 1656 View in context action
4.1 wp-includes/comment.php 1941 View in context action
4.2 wp-includes/comment.php 2149 View in context action
4.3 wp-includes/comment.php 2215 View in context action
4.4 wp-includes/comment.php 1536 View in context action
4.5 wp-includes/comment.php 1612 View in context action
4.6 wp-includes/comment.php 1616 View in context action
4.7 wp-includes/comment.php 1769 View in context action
4.8 wp-includes/comment.php 1763 View in context action
4.9 wp-includes/comment.php 1797 View in context action
5.0 wp-includes/comment.php 1799 View in context action
5.1 wp-includes/comment.php 1891 View in context action

Related Hooks

We find related hooks using word stems. wp_insert_comment has 2 significant word stem(s): insert, comment. Note that some of the hooks below may not appear in all versions of WP.