Core Function
View Source on Trac ↗ get_comment_type()
get_comment_type( mixed $comment_id = 0 ) Retrieves the comment type of the current comment.
Parameters 1 required
| Name / Type | Description |
|---|---|
| mixed | (int | WP_Comment) $comment_id Optional. WP_Comment or ID of the comment for which to get the type. Default current comment. Required |
Return Value
(string)
The comment type.
Function Information
Since Version
1.5.0
Source File
wp-includes/comment-template.php
Advertisement