get_comment_excerpt
get_comment_excerpt ( $comment_id = 0 )
Parameters:- (int|WP_Comment) comment_id Optional. WP_Comment or ID of the comment for which to get the excerpt. Default current comment.
Returns:- (string) The possibly truncated comment excerpt.
Defined at:Change Log: - Introduced in WordPress: 1.5.0
- Deprecated in WordPress: —
Description
Retrieves the excerpt of the given comment.Returns a maximum of 20 words with an ellipsis appended if necessary.