Menu Adam R Brown

WP hooks navigation: Home/browseActions indexFilters index

WordPress hook directory
trash_comment

Description

Runs just before a comment is trashed. 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 trash_comment

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

Version File Line Type
2.9 wp-includes/comment.php 874 View in context action
3.0 wp-includes/comment.php 939 View in context action
3.1 wp-includes/comment.php 997 View in context action
3.2 wp-includes/comment.php 1008 View in context action
3.3 wp-includes/comment.php 1008 View in context action
3.4 wp-includes/comment.php 1022 View in context action
3.5 wp-includes/comment.php 1054 View in context action
3.6 wp-includes/comment.php 1056 View in context action
3.7 wp-includes/comment.php 1071 View in context action
3.8 wp-includes/comment.php 1240 View in context action
3.9 wp-includes/comment.php 1229 View in context action
4.0 wp-includes/comment.php 1318 View in context action
4.1 wp-includes/comment.php 1602 View in context action
4.2 wp-includes/comment.php 1800 View in context action
4.3 wp-includes/comment.php 1857 View in context action
4.4 wp-includes/comment.php 1152 View in context action
4.5 wp-includes/comment.php 1228 View in context action
4.6 wp-includes/comment.php 1231 View in context action
4.7 wp-includes/comment.php 1360 View in context action
4.8 wp-includes/comment.php 1354 View in context action
4.9 wp-includes/comment.php 1374 View in context action
5.0 wp-includes/comment.php 1376 View in context action
5.1 wp-includes/comment.php 1428 View in context action

Related Hooks

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