comments_template хук-фильтрWP 1.5.1

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 Введена.

Где вызывается хук

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

Где используется хук в WordPress

Использование не найдено.