get_comment_text filter-hookWP 1.5.0

Filters the text of a comment.

Usage

add_filter( 'get_comment_text', 'wp_kama_get_comment_text_filter', 10, 3 );

/**
 * Function for `get_comment_text` filter-hook.
 * 
 * @param string     $comment_content Text of the comment.
 * @param WP_Comment $comment         The comment object.
 * @param array      $args            An array of arguments.
 *
 * @return string
 */
function wp_kama_get_comment_text_filter( $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()
get_comment_text
wp-includes/comment-template.php 996
return apply_filters( 'get_comment_text', $comment_content, $comment, $args );

Where the hook is used in WordPress

Usage not found.