WordPress hook directory
wp_set_comment_status

Description

Runs when the status of a comment changes. Action function arguments: comment ID, status string indicating the new status ("delete", "approve", "spam", "hold").

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_set_comment_status

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

Version File Line Type
1.5.2 wp-includes/comment-functions.php 594 View in context action
2.0 wp-includes/comment-functions.php 209 View in context action
2.0 wp-includes/comment-functions.php 794 View in context action
2.0.11 wp-includes/comment-functions.php 218 View in context action
2.0.11 wp-includes/comment-functions.php 796 View in context action
2.1 wp-includes/comment.php 283 View in context action
2.1 wp-includes/comment.php 436 View in context action
2.2 wp-includes/comment.php 284 View in context action
2.2 wp-includes/comment.php 437 View in context action
2.3 wp-includes/comment.php 291 View in context action
2.3 wp-includes/comment.php 450 View in context action
2.5 wp-includes/comment.php 499 View in context action
2.5 wp-includes/comment.php 737 View in context action
2.6 wp-includes/comment.php 544 View in context action
2.6 wp-includes/comment.php 785 View in context action
2.7 wp-includes/comment.php 748 View in context action
2.7 wp-includes/comment.php 1045 View in context action
2.8 wp-includes/comment.php 759 View in context action
2.8 wp-includes/comment.php 1065 View in context action
2.9 wp-includes/comment.php 852 View in context action
2.9 wp-includes/comment.php 1283 View in context action
3.0 wp-includes/comment.php 914 View in context action
3.0 wp-includes/comment.php 1348 View in context action
3.1 wp-includes/comment.php 972 View in context action
3.1 wp-includes/comment.php 1410 View in context action
3.2 wp-includes/comment.php 983 View in context action
3.2 wp-includes/comment.php 1421 View in context action
3.3 wp-includes/comment.php 983 View in context action
3.3 wp-includes/comment.php 1421 View in context action
3.4 wp-includes/comment.php 997 View in context action
3.4 wp-includes/comment.php 1432 View in context action
3.5 wp-includes/comment.php 1029 View in context action
3.5 wp-includes/comment.php 1471 View in context action
3.6 wp-includes/comment.php 1031 View in context action
3.6 wp-includes/comment.php 1468 View in context action
3.7 wp-includes/comment.php 1046 View in context action
3.7 wp-includes/comment.php 1483 View in context action
3.8 wp-includes/comment.php 1208 View in context action
3.8 wp-includes/comment.php 1807 View in context action
3.9 wp-includes/comment.php 1198 View in context action
3.9 wp-includes/comment.php 1790 View in context action
4.0 wp-includes/comment.php 1286 View in context action
4.0 wp-includes/comment.php 1890 View in context action
4.1 wp-includes/comment.php 1572 View in context action
4.1 wp-includes/comment.php 2174 View in context action
4.2 wp-includes/comment.php 1770 View in context action
4.2 wp-includes/comment.php 2387 View in context action
4.3 wp-includes/comment.php 1827 View in context action
4.3 wp-includes/comment.php 2486 View in context action
4.4 wp-includes/comment.php 1122 View in context action
4.4 wp-includes/comment.php 1876 View in context action
4.5 wp-includes/comment.php 1198 View in context action
4.5 wp-includes/comment.php 1954 View in context action
4.6 wp-includes/comment.php 1201 View in context action
4.6 wp-includes/comment.php 1957 View in context action
4.7 wp-includes/comment.php 1330 View in context action
4.7 wp-includes/comment.php 2120 View in context action
4.8 wp-includes/comment.php 1324 View in context action
4.8 wp-includes/comment.php 2114 View in context action
4.9 wp-includes/comment.php 1342 View in context action
4.9 wp-includes/comment.php 2148 View in context action
5.0 wp-includes/comment.php 1344 View in context action
5.0 wp-includes/comment.php 2150 View in context action
5.1 wp-includes/comment.php 1394 View in context action
5.1 wp-includes/comment.php 2245 View in context action

Related Hooks

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