get_comment_excerpt

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

get_comment_excerpt: 这个函数检索给定评论的评论内容的摘录: 该函数接受一个参数,即评论ID,并返回一个代表摘录的字符串。

过滤检索到的评论摘录。

return apply_filters( 'get_comment_excerpt', $excerpt, $comment->comment_ID, $comment );

常见问题

FAQs
查看更多 >
闪电伯伯

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

2025-11-17 20:27:11

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

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

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