On this page
comment_ID()
Displays the comment ID of the current comment.
Source
File: wp-includes/comment-template.php. View all references
function comment_ID() { // phpcs:ignore WordPress.NamingConventions.ValidFunctionName.FunctionNameInvalid
echo get_comment_ID();
}
Related
Uses
| Uses | Description |
|---|---|
| get_comment_ID() wp-includes/comment-template.php | Retrieves the comment ID of the current comment. |
Used By
| 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. |
Changelog
| Version | Description |
|---|---|
| 0.71 | Introduced. |
© 2003–2022 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/functions/comment_id