get_comment_excerpt ( $comment_ID = 0 )
- (int|WP_Comment) $comment_ID WP_Comment or ID of the comment for which to get the excerpt. Default current comment.
Defined at:Change Log:
- (string) The maybe truncated comment with 20 words or less.
- Introduced in WordPress: 1.5.0
- Deprecated in WordPress: —
Retrieve the excerpt of the current comment.
Will cut each word and only output the first 20 words with '…' at the end.
If the word count is less than 20, then no truncating is done and no '…'