wordpress / latest / hooks / comment_excerpt.html

apply_filters( 'comment_excerpt', string $comment_excerpt, string $comment_ID )

Filters the comment excerpt for display.

Parameters

$comment_excerpt string
The comment excerpt text.
$comment_ID string
The comment ID as a numeric string.

Source

File: wp-includes/comment-template.php. View all references

echo apply_filters( 'comment_excerpt', $comment_excerpt, $comment->comment_ID );

Used By

Used By Description

Changelog

Version Description
4.1.0 The $comment_ID parameter was added.
1.2.0 Introduced.

© 2003–2022 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/comment_excerpt