Filters the path to the theme template file used for the comments template.
$theme_templatestringwp-includes/comment-template.php:1626comments_template() * Filters the path to the theme template file used for the comments template. * * @since 1.5.1 * * @param string $theme_template The path to the theme template file. */ $include = apply_filters( 'comments_template', $theme_template ); if ( file_exists( $include ) ) { require $include; } elseif ( file_exists( trailingslashit( $wp_template_path ) . $file ) ) { require trailingslashit( $wp_template_path ) . $file; } else { // Backward compat code will be removed in a future release.Introduced in 1.5.1. Unchanged from 6.7.7 through 7.1.0.
Signature, return type and hooks compared across 5 parsed releases.