single_term_title filter-hookWP 3.1.0

Filters the custom taxonomy archive page title.

Usage

add_filter( 'single_term_title', 'wp_kama_single_term_title_filter' );

/**
 * Function for `single_term_title` filter-hook.
 * 
 * @param string $term_name Term name for archive being displayed.
 *
 * @return string
 */
function wp_kama_single_term_title_filter( $term_name ){

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

Changelog

Since 3.1.0 Introduced.

Where the hook is called

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

Where the hook is used in WordPress

Usage not found.