当前浏览:首页 / WordPress函数 / comment_type()

comment_type( string|false $commenttxt = false, string|false $trackbacktxt = false, string|false $pingbacktxt = false )

显示当前评论的评论类型

comment 评论more...

typemore...


参数

$commenttxt

(string|false)(可选) 要为“评论”类型显示的字符串。

默认值: false

$trackbacktxt

(string|false)(可选) 要为trackback类型显示的字符串。

默认值: false

$pingbacktxt

(string|false)(可选) 要为pingback类型显示的字符串。

默认值: false



源码

查看源码 官方文档


更新日志

版本描述
0.71开始引入

使用示例

  • 示例1

    基本示例

    <p><?php comment_type(); ?> to <?php the_title(); ?>: </p>