single_tag_title хук-фильтрWP 2.3.0

Filters the tag archive page title.

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

add_filter( 'single_tag_title', 'wp_kama_single_tag_title_filter' );

/**
 * Function for `single_tag_title` filter-hook.
 * 
 * @param string $term_name Tag name for archive being displayed.
 *
 * @return string
 */
function wp_kama_single_tag_title_filter( $term_name ){

	// filter...
	return $term_name;
}
$term_name(строка)
Tag name for archive being displayed.

Список изменений

С версии 2.3.0 Введена.

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

single_term_title()
single_tag_title
wp-includes/general-template.php 1600
$term_name = apply_filters( 'single_tag_title', $term->name );

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

wp-includes/default-filters.php 160
add_filter( $filter, 'wptexturize' );
wp-includes/default-filters.php 161
add_filter( $filter, 'strip_tags' );