comment_ID()
Display the comment id of the current comment.
描述
源代码
File: wp-includes/comment-template.php
function comment_ID() {
echo get_comment_ID();
}
更新日志
Version | 描述 |
---|---|
0.71 | Introduced. |
相关函数
Uses
-
wp-includes/comment-template.php:
get_comment_ID()
Used By
-
wp-includes/class-walker-comment.php:
Walker_Comment::comment() -
wp-includes/class-walker-comment.php:
Walker_Comment::html5_comment() -
wp-includes/class-walker-comment.php:
Walker_Comment::ping()
User Contributed Notes
-
Skip to note content
You must log in to vote on the helpfulness of this noteVote results for this note: 0You must log in to vote on the helpfulness of this note
Contributed by
Codex
Comment ID as Anchor ID
Uses the comment ID as an anchor id for a comment.
<div id="comment-<?php comment_ID() ?>">Comment by <?php comment_author() ?>: </div> <div class="comment-text"><?php comment_text() ?></div>
你可能对这些文章感兴趣:
- wordpress函数gd_edit_image_support()用法示例
- wordpress函数funky_javascript_callback()用法示例
- wordpress函数funky_javascript_fix()用法示例
- wordpress函数gallery_shortcode()用法示例
- wordpress函数format_to_post()用法示例
- wordpress函数form_option()用法示例
- wordpress函数format_to_edit()用法示例
- wordpress函数force_ssl_login()用法示例
- wordpress函数format_code_lang()用法示例
- wordpress函数format_for_editor()用法示例
- wordpress函数force_ssl_content()用法示例
- wordpress函数flush_rewrite_rules()用法示例
- wordpress函数force_balance_tags()用法示例
- wordpress函数force_ssl_admin()用法示例
如有疑问,请前往问答中心反馈!
反馈