comments_template
Filters the path to the theme template file used for the comments template.
Usage
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(string)
- The path to the theme template file.
Changelog
| Since 1.5.1 | Introduced. |
Where the hook is called
wp-includes/comment-template.php 1622
$include = apply_filters( 'comments_template', $theme_template );