wordpress / latest / hooks / comment_text.html

apply_filters( 'comment_text', string $comment_text, WP_Comment|null $comment, array $args )

Filters the text of a comment to be displayed.

Description

See also

Parameters

$comment_text string
Text of the current comment.
$comment WP_Comment|null
The comment object. Null if not found.
$args array
An array of arguments.

Source

File: wp-includes/comment-template.php. View all references

echo apply_filters( 'comment_text', $comment_text, $comment, $args );

Changelog

Version Description
1.2.0 Introduced.

© 2003–2022 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/comment_text