comments_template

过滤钩子


apply_filters( 'comments_template', $theme_template )
参数
  • (string)
    $theme_template
    The path to the theme template file.
    Required:
定义位置
  • wp-includes/comment-template.php
    , line 1547
引入
1.5.1
弃用

Filters the path to the theme template file used for the comments template.

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