comment_text WordPress Filter Hook
The comment_text hook is used to filter the text of a comment before it is displayed. This hook is called in the comments template, in the default WordPress theme.
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
Changelog
Version | Description |
---|---|
1.2.0 | Introduced. |