WordPress评论摘要标签:comment_excerpt

WordPress模板标签comment_excerpt用于输出评论摘要,默认输出20个字符,通常用在自定义评论模板中。

comment_excerpt( integer $comment_ID = 0 )

函数参数

$comment_ID

整数型,默认值:0

指定一个评论的ID,则输出该评论的摘要

函数使用示例

<?php comment_excerpt( $comment_ID ); ?>

扩展阅读

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

相关函数:

阿里云