wp-includes/comment-template.php:1187Displays the comment type of the current comment.
$comment_textstring|falseoptionalfalse$trackback_textstring|falseoptionalfalse$pingback_textstring|falseoptionalfalsefunction comment_type( $comment_text = false, $trackback_text = false, $pingback_text = false ) { if ( false === $comment_text ) { $comment_text = _x( 'Comment', 'noun' ); } if ( false === $trackback_text ) { $trackback_text = __( 'Trackback' ); } if ( false === $pingback_text ) { $pingback_text = __( 'Pingback' ); } $type = get_comment_type(); switch ( $type ) { case 'trackback': echo $trackback_text; break; case 'pingback': echo $pingback_text; break; default: echo $comment_text; }}Introduced in 0.71. 6 changes between 6.7.7 and 7.1.0.
Signature, return type and hooks compared across 5 parsed releases.
$comment_text added.verified against source$trackback_text added.verified against source$pingback_text added.verified against source$commenttxt removed.verified against source$trackbacktxt removed.verified against source$pingbacktxt removed.verified against sourcesrc/wp-includes/comment-template.php, and regenerated for each WordPress release so it tracks the code rather than a snapshot of it.