W3cubDocs

/WordPress

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 on Trac

Changelog

Version Description
1.2.0 Introduced.

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