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:
  • 4: .

Description

Retrieves the excerpt of the given comment.Returns a maximum of 20 words with an ellipsis appended if necessary.

Related Functions

comment_excerpt, get_comment_text, get_comment_meta, get_comment_count, get_the_excerpt

Top Google Results

User discussions

wpseek mobile