WordPress at a glance
filter is not described

get_comment_type filter-hook . WP 1.5.0

Filters the returned comment type.


add_filter( 'get_comment_type', 'filter_function_name_9347', 10, 3 );
function filter_function_name_9347( $comment_type, $comment_ID, $comment ){
	// filter...

	return $comment_type;
The type of comment, such as 'comment', 'pingback', or 'trackback'.
The comment ID.
The comment object.


  • Since 4.1.0 The $comment_ID and $comment parameters were added.

Where the hook is called

wp-includes/comment-template.php 1069
return apply_filters( 'get_comment_type', $comment->comment_type, $comment->comment_ID, $comment );

Where the hook is used (in WP core)

Does not used.