comments_template
Filters the path to the theme template file used for the comments template.
Использование
add_filter( 'comments_template', 'wp_kama_comments_template_filter' );
/**
* Function for `comments_template` filter-hook.
*
* @param string $theme_template The path to the theme template file.
*
* @return string
*/
function wp_kama_comments_template_filter( $theme_template ){
// filter...
return $theme_template;
}
- $theme_template(строка)
- The path to the theme template file.
Список изменений
| С версии 1.5.1 | Введена. |
Где вызывается хук
wp-includes/comment-template.php 1622
$include = apply_filters( 'comments_template', $theme_template );