W3cubDocs

/WordPress

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

Fires immediately before transitioning a comment’s status from one to another in the database.

Parameters

$comment_id

(int) Comment ID.

$comment_status

(string|bool) Current comment status. Possible values include 'hold', 'approve', 'spam', 'trash', or false.

Source

File: wp-includes/comment.php

View on Trac

Changelog

Version Description
1.5.0 Introduced.

© 2003–2019 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/wp_set_comment_status