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
See also
Parameters
- $comment_content
(string)Text of the comment.
- $comment
(WP_Comment)The comment object.
- $args
(array)An array of arguments.
Source
Changelog
Version | Description |
---|---|
1.5.0 | Introduced. |