Core Function
View Source on Trac ↗ get_comment_text()
get_comment_text( mixed $comment_id = 0, mixed $args = array() ) Retrieves the text of the current comment.
Parameters 1 required
| Name / Type | Description |
|---|---|
| mixed | (int | WP_Comment) $comment_id Optional. WP_Comment or ID of the comment for which to get the text. Default current comment. Required |
| $args array | Optional. An array of arguments. Default empty array. |
Return Value
(string)
The comment content.
Function Information
Since Version
1.5.0
Source File
wp-includes/comment-template.php
Advertisement