get_comment_text filter-hook . WP 1.5.0
Filters the text of a comment.
Usage
add_filter( 'get_comment_text', 'filter_function_name_3487', 10, 3 ); function filter_function_name_3487( $comment_content, $comment, $args ){ // filter... return $comment_content; }
- $comment_content(string)
- Text of the comment.
- $comment(WP_Comment)
- The comment object.
- $args(array)
- An array of arguments.
Changelog
Since 1.5.0 | Introduced. |
Where the hook is called
get_comment_text
wp-includes/comment-template.php 998
return apply_filters( 'get_comment_text', $comment_content, $comment, $args );