Languages: English • 日本語 • (Add your language)
Retrieve the comment id of the current comment.
<?php $comment_id = get_comment_ID(); ?>
This function does not accept parameters
Uses the comment ID as an anchor id for a comment.
<?php $comment_id = get_comment_ID(); ?> <div id="comment-<?php echo $comment_id; ?>">Comment by <?php comment_author() ?>: </div> <div class="comment-text"><?php comment_text() ?></div>
Since: 1.5.0
get_comment_ID() is located in wp-includes/comment-template.php