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_text 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_text, $comment, $args ){

	// filter...
	return $comment_text;
}
$comment_text(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 1051
return apply_filters( 'get_comment_text', $comment_text, $comment, $args );

Where the hook is used in WordPress

Usage not found.