Welcome, visitor! Log in
 

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 3.5.

Version File Line Type
2.9 wp-includes/comment.php 874 View hook in source action
3.0 wp-includes/comment.php 939 View hook in source action
3.1 wp-includes/comment.php 997 View hook in source action
3.2 wp-includes/comment.php 1008 View hook in source action
3.3 wp-includes/comment.php 1008 View hook in source action
3.4 wp-includes/comment.php 1022 View hook in source action
3.5 wp-includes/comment.php 1054 View hook in source 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.