get_comment_text
云策文档标注
概述
get_comment_text 是一个 WordPress 过滤器钩子,用于过滤评论的文本内容。它允许开发者在评论文本被输出前进行修改或处理。
关键要点
- 钩子名称:get_comment_text
- 参数:$comment_text(评论文本字符串)、$comment(WP_Comment 对象)、$args(参数数组)
- 相关函数:get_comment_text() 用于检索当前评论的文本
- 引入版本:WordPress 1.5.0
原文内容
Filters the text of a comment.
Description
See also
Parameters
$comment_textstring-
Text of the comment.
$commentWP_Comment-
The comment object.
$argsarray-
An array of arguments.
Source
return apply_filters( 'get_comment_text', $comment_text, $comment, $args );
Changelog
| Version | Description |
|---|---|
| 1.5.0 | Introduced. |