comment_excerpt_length

过滤钩子
apply_filters( 'comment_excerpt_length', $comment_excerpt_length )
参数
  • (int) $comment_excerpt_length The amount of words you want to display in the comment excerpt.
    Required:
定义位置
相关勾子
comment_excerptget_comment_excerptcomment_reply_linkcomment_textcomment_atom_entry
相关方法
comment_excerptget_comment_excerptcomment_reply_linkcomment_textcomment_text_rsscomments_open
引入
4.4.0
弃用
-

comment_excerpt_length: 这是一个过滤钩子,在检索评论的摘录长度时被执行。这个钩子的唯一参数是长度,它应该返回这个长度。这个钩子的目的是允许插件或主题修改一个评论的摘录长度。

过滤评论摘录中使用的最大字数。

$comment_excerpt_length = apply_filters( 'comment_excerpt_length', $comment_excerpt_length );

常见问题

FAQs
查看更多 >
闪电伯伯

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

2025-11-14 10:25:38

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

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

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