WordPress hook directory
delete_comment

Description

Runs just before a comment is deleted. Action function arguments: comment ID.

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 delete_comment

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

Version File Line Type
1.2.1 wp-admin/post.php 1101 View in context action
1.5.2 wp-admin/post.php 552 View in context action
2.0 wp-admin/post.php 232 View in context action
2.0 wp-includes/comment-functions.php 198 View in context action
2.0.11 wp-admin/post.php 247 View in context action
2.0.11 wp-includes/comment-functions.php 205 View in context action
2.1 wp-includes/comment.php 272 View in context action
2.2 wp-includes/comment.php 273 View in context action
2.3 wp-includes/comment.php 278 View in context action
2.5 wp-includes/comment.php 486 View in context action
2.6 wp-includes/comment.php 531 View in context action
2.7 wp-includes/comment.php 735 View in context action
2.8 wp-includes/comment.php 739 View in context action
2.9 wp-includes/comment.php 824 View in context action
2.9 wp-includes/post.php 1225 View in context action
2.9 wp-includes/post.php 2861 View in context action
3.0 wp-includes/comment.php 886 View in context action
3.0 wp-includes/post.php 1769 View in context action
3.0 wp-includes/post.php 3467 View in context action
3.1 wp-content/plugins/akismet/akismet.php 395 View in context action
3.1 wp-content/plugins/akismet/legacy.php 85 View in context action
3.1 wp-includes/comment.php 944 View in context action
3.1 wp-includes/post.php 1996 View in context action
3.1 wp-includes/post.php 3709 View in context action
3.2 wp-content/plugins/akismet/akismet.php 395 View in context action
3.2 wp-content/plugins/akismet/legacy.php 85 View in context action
3.2 wp-includes/comment.php 955 View in context action
3.2 wp-includes/post.php 2027 View in context action
3.2 wp-includes/post.php 3794 View in context action
3.3 wp-content/plugins/akismet/akismet.php 395 View in context action
3.3 wp-content/plugins/akismet/legacy.php 85 View in context action
3.3 wp-includes/comment.php 955 View in context action
3.3 wp-includes/post.php 2019 View in context action
3.3 wp-includes/post.php 3791 View in context action
3.4 wp-content/plugins/akismet/akismet.php 429 View in context action
3.4 wp-content/plugins/akismet/legacy.php 85 View in context action
3.4 wp-includes/comment.php 973 View in context action
3.5 wp-content/plugins/akismet/akismet.php 429 View in context action
3.5 wp-content/plugins/akismet/legacy.php 85 View in context action
3.5 wp-includes/comment.php 1005 View in context action
3.6 wp-content/plugins/akismet/akismet.php 434 View in context action
3.6 wp-content/plugins/akismet/legacy.php 85 View in context action
3.6 wp-includes/comment.php 1007 View in context action
3.7 wp-content/plugins/akismet/akismet.php 434 View in context action
3.7 wp-content/plugins/akismet/legacy.php 85 View in context action
3.7 wp-includes/comment.php 1022 View in context action
3.8 wp-content/plugins/akismet/akismet.php 434 View in context action
3.8 wp-content/plugins/akismet/legacy.php 85 View in context action
3.8 wp-includes/comment.php 1168 View in context action
3.9 wp-content/plugins/akismet/class.akismet.php 258 View in context action
3.9 wp-includes/comment.php 1158 View in context action
4.0 wp-content/plugins/akismet/class.akismet.php 265 View in context action
4.0 wp-includes/comment.php 1253 View in context action
4.1 wp-content/plugins/akismet/class.akismet.php 282 View in context action
4.1 wp-includes/comment.php 1539 View in context action
4.2 wp-content/plugins/akismet/class.akismet.php 286 View in context action
4.2 wp-includes/comment.php 1737 View in context action
4.3 wp-content/plugins/akismet/class.akismet.php 301 View in context action
4.3 wp-includes/comment.php 1794 View in context action
4.4 wp-content/plugins/akismet/class.akismet.php 301 View in context action
4.4 wp-includes/comment.php 1089 View in context action
4.5 wp-content/plugins/akismet/class.akismet.php 347 View in context action
4.5 wp-includes/comment.php 1165 View in context action
4.6 wp-content/plugins/akismet/class.akismet.php 347 View in context action
4.6 wp-includes/comment.php 1168 View in context action
4.7 wp-content/plugins/akismet/class.akismet.php 347 View in context action
4.7 wp-includes/comment.php 1297 View in context action
4.8 wp-content/plugins/akismet/class.akismet.php 340 View in context action
4.8 wp-includes/comment.php 1291 View in context action
4.9 wp-content/plugins/akismet/class.akismet.php 350 View in context action
4.9 wp-includes/comment.php 1307 View in context action
5.0 wp-content/plugins/akismet/class.akismet.php 366 View in context action
5.0 wp-includes/comment.php 1309 View in context action
5.1 wp-content/plugins/akismet/class.akismet.php 366 View in context action
5.1 wp-includes/comment.php 1356 View in context action

Related Hooks

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