WordPress.org

Ready to get started?Download WordPress

Codex

Attention Interested in functions, hooks, classes, or methods? Check out the new WordPress Code Reference!

Function Reference/get comment ID

This page is marked as incomplete. You can help Codex by expanding it.

Contents

Description

Retrieve the comment id of the current comment.

Usage

<?php $comment_id get_comment_ID(); ?>

Parameters

This function does not accept parameters

Return Values

(integer) 
The comment ID

Examples

Notes

Change Log

Since: 1.5.0

Source File

get_comment_ID() is located in wp-includes/comment-template.php

Related