1. 首页
  2. WordPress 函数手册

get_comment_ID()

get_comment_ID()

检索当前注释的注释id。
Retrieves the comment id of the current comment.

目录锚点:#返回#源码#笔记


返回(Return)

(int)注释ID。


源码(Source)


更新版本 源码位置 使用 被使用
1.5.0 wp-includes/comment-template.php:659 2 3

笔记(Notes)

从Codex迁移的示例:

get_comment_ID() 为WP2原创文章,链接:https://www.wp2.cn/functions/get_comment_id/