do_action( 'wp_set_comment_status', int $comment_id, string $comment_status )

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.

Parameters

$comment_id

(int) Comment ID.

$comment_status

(string) Current comment status. Possible values include 'hold', '0', 'approve', '1', 'spam', and 'trash'.

Source

File: wp-includes/comment.php

View on Trac

Changelog

Version Description
1.5.0 Introduced.