single_cat_title filter-hookWP 2.0.10

Filters the category archive page title.

Usage

add_filter( 'single_cat_title', 'wp_kama_single_cat_title_filter' );

/**
 * Function for `single_cat_title` filter-hook.
 * 
 * @param string $term_name Category name for archive being displayed.
 *
 * @return string
 */
function wp_kama_single_cat_title_filter( $term_name ){

	// filter...
	return $term_name;
}
$term_name(string)
Category name for archive being displayed.

Changelog

Since 2.0.10 Introduced.

Where the hook is called

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

Where the hook is used in WordPress

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