Filter hook 'get_comment_type'
in WP Core File wp-includes/comment-template.php at line 1173
Description
Filters the returned comment type.
Occurrences
Filename |
Line Number |
wp-includes/comment-template.php |
1173 |
Parameters
Type |
Name |
Description |
string |
$comment_type |
The type of comment, such as 'comment', 'pingback', or 'trackback'. |
string |
$comment_id |
The comment ID as a numeric string. |
WP_Comment |
$comment |
The comment object. |
PHP Doc
/**
* Filters the returned comment type.
*
* @since 1.5.0
* @since 4.1.0 The `$comment_id` and `$comment` parameters were added.
*
* @param string $comment_type The type of comment, such as 'comment', 'pingback', or 'trackback'.
* @param string $comment_id The comment ID as a numeric string.
* @param WP_Comment $comment The comment object.
*/