WordPress at a glance
filter is not described

comment_excerpt filter-hook . WP 1.2.0

Filters the comment excerpt for display.


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

	return $comment_excerpt;
The comment excerpt text.
The comment ID.


  • Since 4.1.0 The $comment_ID parameter was added.

Where the hook is called

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' );