single_tag_title filter-hookWP 2.3.0

Filters the tag archive page title.

Usage

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(string)
Tag name for archive being displayed.

Changelog

Since 2.3.0 Introduced.

Where the hook is called

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

Where the hook is used in WordPress

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