get_comment_type()
get_comment_type( int|WP_Comment $comment_ID )
检索当前注释的注释类型。
Retrieves the comment type of the current comment.
参数(Parameters)
参数 | 类型 | 必填 | 说明 |
---|---|---|---|
$comment_ID | (int | WP_Comment) | 可选 | WP_Comment或要获取其类型的注释的ID。默认当前注释。 |
返回(Return)
(string)注释类型。
源码(Source)
更新版本 | 源码位置 | 使用 | 被使用 |
---|---|---|---|
4.4.0 | wp-includes/comment-template.php:1081 | 4 | 3 |
get_comment_type() 为WP2原创文章,链接:https://www.wp2.cn/functions/get_comment_type/