WPDev.one
Core Function
View Source on Trac ↗

get_comment_excerpt()

get_comment_excerpt( mixed $comment_id = 0 )

Retrieves the excerpt of the given 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 excerpt. Default current comment.

Required

Return Value

(string)
The possibly truncated comment excerpt.

Function Information

Since Version
1.5.0
Source File
wp-includes/comment-template.php
Advertisement