WordPress at Your Fingertips
action is not described

wp_set_comment_status action-hook . WP 1.5.0

Fires immediately after transitioning a comment's status from one to another in the database and removing the comment from the object cache, but prior to all status transition hooks.

Usage

add_action( 'wp_set_comment_status', 'action_function_name_9807', 10, 2 );
function action_function_name_9807( $comment_id, $comment_status ){
	// action...
}
$comment_id(int)
Comment ID.
$comment_status(string)
Current comment status. Possible values include 'hold', '0', 'approve', '1', 'spam', and 'trash'.

Changelog

Since 1.5.0 Introduced.

Where the hook is called

wp_set_comment_status()
wp_set_comment_status
wp_delete_comment()
wp_set_comment_status
wp-includes/comment.php 2420
do_action( 'wp_set_comment_status', $comment->comment_ID, $comment_status );
wp-includes/comment.php 1532
do_action( 'wp_set_comment_status', $comment->comment_ID, 'delete' );

Where in WP core the hook is used WordPress

wp-includes/comment.php 2384
add_action( 'wp_set_comment_status', 'wp_new_comment_notify_postauthor' );