WordPress at a glance
filter is not described

comment_excerpt filter-hook . WP 1.2.0

Filters the comment excerpt for display.

Usage

add_filter( 'comment_excerpt', 'filter_function_name_353', 10, 2 );
function filter_function_name_353( $comment_excerpt, $comment_ID ){
	// filter...

	return $comment_excerpt;
}
$comment_excerpt(string)
The comment excerpt text.
$comment_ID(int)
The comment ID.

Notes

  • Since 4.1.0 The $comment_ID parameter was added.

Where the hook is called

comment_excerpt()
wp-includes/comment-template.php 643
echo apply_filters( 'comment_excerpt', $comment_excerpt, $comment->comment_ID );

Where the hook is used (in WP core)

wp-includes/default-filters.php 185
add_filter( 'comment_excerpt', 'convert_chars' );