Languages: English • 日本語 (Add your language)
Retrieve the comment type of the current comment.
Use comment_type() to display the value.
<?php get_comment_type( $comment_ID ); ?>
0
(the current comment)'comment'
, 'pingback'
, or 'trackback'
.'get_comment_type'
hook with the comment type.get_comment()
to get the comment object.Since: 1.5.0
get_comment_type()
is located in wp-includes/comment-template.php