WordPress template tags comment_ Text is used to output comments. It is usually used in custom comment templates.
comment_text( integer $comment_ID = 0, array $args = array() )
Function parameters
$comment_ id
Integer type, default value: 0
Specify a comment ID to output the content of the comment.
$args
Array, empty by default
The optional array parameter is comment_ The text() function provides additional values.
Examples of function usage
<li><?php comment_author(); ?>说:<br /> <?php comment_text(); ?></li>
Extended reading
comment_ The text() function is located in: WP includes / comment- template.php
Related Tags:
- cancel_ comment_ reply_ link()
- comment_ author()
- comment_ author_ email()
- comment_ author_ email_ link()
- comment_ author_ ip()
- comment_ author_ link()
- comment_ author_ rss()
- comment_ author_ url()
- comment_ author_ url_ link()
- comment_ class()
- comment_ date()
- comment_ excerpt()
- comment_ form_ title()
- comment_ form()
- comment_ id()
- comment_ id_ fields()
- comment_ reply_ link()
- comment_ text_ rss()
- comment_ time()
- comment_ type()
- comments_ link()
- comments_ number()
- comments_ open()
- comments_ popup_ link()
- comments_ popup_ script()
- comments_ rss_ link()
- get_ avatar()
- next_ comments_ link()
- paginate_ comments_ links()
- permalink_ comments_ rss()
- previous_ comments_ link()
- wp_ list_ comments()