Used By
Used By | Description |
---|---|
wp-includes/comment.php: wp_transition_comment_status() | Call hooks for when a comment status transition occurs. |
Fires when the status of a specific comment type is in transition.
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 an empty string (standard comment), ‘pingback’, or ‘trackback’.
(int) The comment ID.
(WP_Comment) Comment object.
File: wp-includes/comment.php
Version | Description |
---|---|
2.7.0 | Introduced. |
© 2003–2019 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/comment_new_status_comment-comment_type