comment_type()
comment_type( string $commenttxt = false, string $trackbacktxt = false, string $pingbacktxt = false )
显示当前注释的注释类型。
Displays the comment type of the current comment.
参数(Parameters)
参数 | 类型 | 必填 | 说明 |
---|---|---|---|
$commenttxt | (string) | 可选 | 要为注释类型显示的字符串。 |
$trackbacktxt | (string) | 可选 | 要为trackback类型显示的字符串。 |
$pingbacktxt | (string) | 可选 | 为pingback类型显示的字符串。 |
返回(Return)
无返回值
源码(Source)
更新版本 | 源码位置 | 使用 | 被使用 |
---|---|---|---|
0.71 | wp-includes/comment-template.php:1109 | 0 | 3 |
笔记(Notes)
基本示例
comment_type() 为WP2原创文章,链接:https://www.wp2.cn/functions/comment_type/