Filters the text of a comment to be displayed.
$comment_textstring$commentWP_Comment|null$argsarraywp-includes/blocks/comment-content.php:37render_block_core_comment_content()wp-includes/comment-template.php:1094comment_text()wp-includes/comment.php:48check_comment()wp-includes/rest-api/endpoints/class-wp-rest-comments-controller.php:1094WP_REST_Comments_Controller::prepare_item_for_response() * @see Walker_Comment::comment() * * @param string $comment_text Text of the comment. * @param WP_Comment|null $comment The comment object. Null if not found. * @param array $args An array of arguments. */ echo apply_filters( 'comment_text', $comment_text, $comment, $args );} /** * Retrieves the comment time of the current comment. * * @since 1.5.0Introduced in 1.2.0. Unchanged from 6.7.7 through 7.1.0.
Signature, return type and hooks compared across 5 parsed releases.