comment_excerpt

过滤钩子
apply_filters( 'comment_excerpt', $comment_excerpt, $comment->comment_ID )
参数
  • (string) $comment_excerpt The comment excerpt text.
    Required:
  • (string) $comment_ID The comment ID as a numeric string.
    Required:
定义位置
相关勾子
get_comment_excerptcomment_excerpt_lengthcomment_textcomment_postget_comment_text
相关方法
comment_excerptget_comment_excerptcomment_textcomment_existsget_comment_textcomment_text_rss
引入
4.1.0
弃用
-

comment_excerpt: 这是一个过滤钩子,在检索评论的摘录时被执行。该钩子被传递给摘录作为其唯一的参数,它被期望返回摘录。这个钩子的目的是允许插件或主题修改一个评论的摘录。

过滤要显示的评论摘录。

echo apply_filters( 'comment_excerpt', $comment_excerpt, $comment->comment_ID );

常见问题

FAQs
查看更多 >
闪电侠

(工作日 10:00 - 18:30 为您服务)

2025-12-05 17:32:57

您好,无论是售前、售后、意见建议……均可通过联系工单与我们取得联系。

您也可选择聊天工具与我们即时沟通或点击查看:

您的工单我们已经收到,我们将会尽快跟您联系!
取消
选择聊天工具: