Fires when the status of a specific comment type is in transition.
Description
The dynamic portions of the hook name, $new_status, and $comment->comment_type, refer to the new comment status, and the type of comment, respectively. Typical comment types include 'comment', 'pingback', or 'trackback'. Possible hook names include: <ul> <li>comment_approved_comment</li> <li>comment_approved_pingback</li> <li>comment_approved_trackback</li> <li>comment_unapproved_comment</li> <li>comment_unapproved_pingback</li> <li>comment_unapproved_trackback</li> <li>comment_spam_comment</li> <li>comment_spam_pingback</li> <li>comment_spam_trackback</li> </ul>
2001*2002* @since 2.7.02003*2004* @param string$comment_id The comment IDas a numeric string.2005* @param WP_Comment$comment Comment object.2006*/2007do_action("comment_{$new_status}_{$comment->comment_type}",$comment->comment_ID,$comment);2008}20092010/**2011* Clears the lastcommentmodified cached value when a comment status is changed.2012*2013* Deletes the lastcommentmodified cache key when a comment enters or leaves
History
Introduced in 2.7.0. Unchanged from 6.7.7 through 7.1.0.