WordPress函数:comment_text评论内容标签函数

追格官方小助手/ 2022年10月05日/ WordPress/ 浏览 1026

comment_text为WordPress评论内容标签函数,用于输出评论内容,通常用在自定义评论模板中。


comment_text( integer $comment_ID = 0, array $args = array() )


comment_text()函数位于:wp-includes/comment-template.php


函数示例:


<li><?php comment_author(); ?>说:<br /> <?php comment_text(); ?></li>


函数参数:

$comment_ID:默认值0

$args:数组,默认为空

发表评论

暂无评论,抢个沙发...

客服 工单