在将注释的状态从一个转换到另一个数据库之前立即触发。
原型
do_action( 'wp_set_comment_status', int $comment_id, string|bool $comment_status )
参数
$comment_id
(int)
评论ID。
$comment_status
(string|bool)
当前评论状态。可能的值包括“hold”,“approve”,“spam”,“trash”或false。
源文件
路径:wp-includes/comment.php
其他
英文文档:https://developer.wordpress.org/reference/hooks/wp_set_comment_status/