comments_template

过滤钩子
apply_filters( 'comments_template', $theme_template )
参数
  • (string) $theme_template The path to the theme template file.
    Required:
定义位置
相关勾子
comment_textcomments_template_query_argscomment_emailcommentrss2_itemcomments_open
相关方法
comments_templateget_comments_popup_templatecomment_typecomment_dateget_templatecomment_text
引入
1.5.1
弃用
-

comments_template: 这个函数用来加载一个给定文章的评论模板。默认情况下,这个函数加载活动主题的comments.php模板,但你可以使用comments_template过滤器来加载一个自定义的评论模板。

过滤用于评论模板的主题模板文件的路径。

$include = apply_filters( 'comments_template', $theme_template );

常见问题

FAQs
查看更多 >
闪电侠

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

2026-01-29 13:09:46

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

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

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