Warning: Trying to access array offset on false in /www/wwwroot/www.wpdongli.com/wp-content/themes/WPdongli/functions/wp.php on line 216
comment_type() - 显示当前评论的评论类型 - WordPress函数 - WordPress动力
当前浏览:首页 / WordPress函数 / comment_type()

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

显示当前评论的评论类型


Warning: Undefined array key -1 in /www/wwwroot/www.wpdongli.com/wp-content/themes/WPdongli/functions/reference-cat.php on line 185

Warning: Undefined array key 2 in /www/wwwroot/www.wpdongli.com/wp-content/themes/WPdongli/functions/reference-cat.php on line 186

Warning: Undefined variable $searchand in /www/wwwroot/www.wpdongli.com/wp-content/themes/WPdongli/functions/wp.php on line 154

Warning: Undefined array key "8a120dc4a793b62501729a9a51316687" in /www/wwwroot/www.wpdongli.com/wp-content/themes/WPdongli/functions/wp.php on line 223

Warning: Undefined variable $searchand in /www/wwwroot/www.wpdongli.com/wp-content/themes/WPdongli/functions/wp.php on line 154

Warning: Undefined array key "f73a5857ea2ddccc9aee632dec0927d2" in /www/wwwroot/www.wpdongli.com/wp-content/themes/WPdongli/functions/wp.php on line 223

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>