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.
$comment_idstring
$comment_statusstring
'hold', '0', 'approve', '1', 'spam', and 'trash'.do_action( 'wp_set_comment_status', $comment->comment_ID, $comment_status );
| Version | Description |
|---|---|
| 1.5.0 | Introduced. |
© 2003–2024 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/wp_set_comment_status