Fires when the comment status is in transition from one specific status to another.
Description
The dynamic portions of the hook name, $old_status, and $new_status, refer to the old and new comment statuses, respectively. Possible hook names include: <ul> <li>comment_unapproved_to_approved</li> <li>comment_spam_to_approved</li> <li>comment_approved_to_unapproved</li> <li>comment_spam_to_unapproved</li> <li>comment_unapproved_to_spam</li> <li>comment_approved_to_spam</li> </ul>
1863*-`comment_approved_to_spam`1864*1865* @since 2.7.01866*1867* @param WP_Comment$comment Comment object.1868*/1869do_action("comment_{$old_status}_to_{$new_status}",$comment);1870}1871/**1872* Fires when the status of a specific comment type is in transition.1873*1874* The dynamic portions of the hook name,`$new_status`,and`$comment->comment_type`,1875* refer to the newcomment status,and the type of comment, respectively.
History
Introduced in 2.7.0. Unchanged from 6.7.7 through 7.1.0.