comment_ID() WordPress Function
The comment_ID() function is used to retrieve the comment ID for a given comment. This function can be useful for retrieving the ID of a specific comment, or for displaying the ID of a comment in the front-end.
comment_ID() #
Displays the comment ID of the current comment.
Source
File: wp-includes/comment-template.php
function comment_ID() { // phpcs:ignore WordPress.NamingConventions.ValidFunctionName.FunctionNameInvalid echo get_comment_ID(); }
Expand full source codeCollapse full source codeView on TracView on GitHub
Changelog
Version | Description |
---|---|
0.71 | Introduced. |