comment_type()
Display the comment type of the current comment.
Uses: get_comment_type()
No Hooks.
Return
null
. Nothing (null).
Usage
comment_type( $commenttxt, $trackbacktxt, $pingbacktxt );
- $commenttxt(string|false)
- String to display for comment type.
Default: false - $trackbacktxt(string|false)
- String to display for trackback type.
Default: false - $pingbacktxt(string|false)
- String to display for pingback type.
Default: false
Examples
#1 A simple example of how use the function
<p><?php comment_type(); ?> to the posts: <?php the_title(); ?> </p>
Changelog
Since 0.71 | Introduced. |