comments_template filter-hookWP 1.5.1

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

comments_template()
comments_template
wp-includes/comment-template.php 1553
$include = apply_filters( 'comments_template', $theme_template );

Where the hook is used in WordPress

Usage not found.