get_comment_text WordPress Filter Hook

The get_comment_text hook allows you to modify the text of a comment before it is displayed on the website. This can be useful for adding links or formatting the text in a certain way.

apply_filters( 'get_comment_text', string $comment_content, WP_Comment $comment, array $args ) #

Filters the text of a comment.


Description

Top ↑

See also


Top ↑

Parameters

$comment_content

(string)Text of the comment.

$comment

(WP_Comment)The comment object.

$args

(array)An array of arguments.


Top ↑

Source

File: wp-includes/comment-template.php

View on Trac



Top ↑

Changelog

Changelog
VersionDescription
1.5.0Introduced.

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.

Show More