do_action( 'wp_set_comment_status', int $comment_id, string|bool $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 Parameters


(int) Comment ID.


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

Top ↑

Source Source

File: wp-includes/comment.php

View on Trac

Top ↑

Changelog Changelog

Version Description
1.5.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.