On this page
apply_filters( 'comments_template', string $theme_template )
Filters the path to the theme template file used for the comments template.
Parameters
$theme_templatestring-
The path to the theme template file.
More Information
The comments_template filter can be used to load a custom template form a plugin which replaces the theme’s default comment template.
Source
File: wp-includes/comment-template.php. View all references
$include = apply_filters( 'comments_template', $theme_template );
Related
Used By
| Used By | Description |
|---|---|
| comments_template() wp-includes/comment-template.php | Loads the comment template specified in $file. |
Changelog
| Version | Description |
|---|---|
| 1.5.1 | Introduced. |
© 2003–2022 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/comments_template