comment_excerpt filter-hook . WP 1.2.0
Filters the comment excerpt for display.
Usage
add_filter( 'comment_excerpt', 'filter_function_name_3780', 10, 2 ); function filter_function_name_3780( $comment_excerpt, $comment_ID ){ // filter... return $comment_excerpt; }
- $comment_excerpt(string)
- The comment excerpt text.
- $comment_ID(int)
- The comment ID.
Changelog
Since 1.2.0 | Introduced. |
Since 4.1.0 | The $comment_ID parameter was added. |
Where the hook is called
comment_excerpt
wp-includes/comment-template.php 655
echo apply_filters( 'comment_excerpt', $comment_excerpt, $comment->comment_ID );
Where in WP core the hook is used WordPress
wp-includes/comment-template.php 199
add_filter( 'comment_excerpt', 'convert_chars' );