single_term_title
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
wp-includes/general-template.php 1629
$term_name = apply_filters( 'single_term_title', $term->name );