Displays the comment ID of the current comment.
Source
function comment_ID() { // phpcs:ignore WordPress.NamingConventions.ValidFunctionName.FunctionNameInvalid
echo get_comment_ID();
}
Changelog
| Version | Description |
|---|---|
| 0.71 | Introduced. |
| CARVIEW |
Displays the comment ID of the current comment.
function comment_ID() { // phpcs:ignore WordPress.NamingConventions.ValidFunctionName.FunctionNameInvalid
echo get_comment_ID();
}
| Uses | Description |
|---|---|
get_comment_ID()wp-includes/comment-template.php | Retrieves the comment ID of the current comment. |
| Used by | Description |
|---|---|
Walker_Comment::comment()wp-includes/class-walker-comment.php | Outputs a single comment. |
Walker_Comment::html5_comment()wp-includes/class-walker-comment.php | Outputs a comment in the HTML5 format. |
Walker_Comment::ping()wp-includes/class-walker-comment.php | Outputs a pingback comment. |
| Version | Description |
|---|---|
| 0.71 | Introduced. |
You must log in before being able to contribute a note or feedback.
Comment ID as Anchor ID
Uses the comment ID as an anchor id for a comment.