Title: single_term_title
Published: April 25, 2014
Last modified: February 24, 2026

---

# apply_filters( ‘single_term_title’, string $term_name )

## In this article

 * [Parameters](https://developer.wordpress.org/reference/hooks/single_term_title/?output_format=md#parameters)
 * [Source](https://developer.wordpress.org/reference/hooks/single_term_title/?output_format=md#source)
 * [Related](https://developer.wordpress.org/reference/hooks/single_term_title/?output_format=md#related)
 * [Changelog](https://developer.wordpress.org/reference/hooks/single_term_title/?output_format=md#changelog)
 * [User Contributed Notes](https://developer.wordpress.org/reference/hooks/single_term_title/?output_format=md#user-contributed-notes)

[ Back to top](https://developer.wordpress.org/reference/hooks/single_term_title/?output_format=md#wp--skip-link--target)

Filters the custom taxonomy archive page title.

## 󠀁[Parameters](https://developer.wordpress.org/reference/hooks/single_term_title/?output_format=md#parameters)󠁿

 `$term_name`string

Term name for archive being displayed.

## 󠀁[Source](https://developer.wordpress.org/reference/hooks/single_term_title/?output_format=md#source)󠁿

    ```php
    $term_name = apply_filters( 'single_term_title', $term->name );
    ```

[View all references](https://developer.wordpress.org/reference/files/wp-includes/general-template.php/)
[View on Trac](https://core.trac.wordpress.org/browser/tags/6.9.4/src/wp-includes/general-template.php#L1634)
[View on GitHub](https://github.com/WordPress/wordpress-develop/blob/6.9.4/src/wp-includes/general-template.php#L1634-L1634)

## 󠀁[Related](https://developer.wordpress.org/reference/hooks/single_term_title/?output_format=md#related)󠁿

| Used by | Description | 
| [single_term_title()](https://developer.wordpress.org/reference/functions/single_term_title/)`wp-includes/general-template.php` |

Displays or retrieves page title for taxonomy term archive.

  |

## 󠀁[Changelog](https://developer.wordpress.org/reference/hooks/single_term_title/?output_format=md#changelog)󠁿

| Version | Description | 
| [3.1.0](https://developer.wordpress.org/reference/since/3.1.0/) | Introduced. |

## 󠀁[User Contributed Notes](https://developer.wordpress.org/reference/hooks/single_term_title/?output_format=md#user-contributed-notes)󠁿

 1.  [Skip to note 2 content](https://developer.wordpress.org/reference/hooks/single_term_title/?output_format=md#comment-content-5229)
 2.   [hasanrang05](https://profiles.wordpress.org/hasanrang05/)  [  5 years ago  ](https://developer.wordpress.org/reference/hooks/single_term_title/#comment-5229)
 3. [You must log in to vote on the helpfulness of this note](https://login.wordpress.org?redirect_to=https%3A%2F%2Fdeveloper.wordpress.org%2Freference%2Fhooks%2Fsingle_term_title%2F%23comment-5229)
    Vote results for this note: 0[You must log in to vote on the helpfulness of this note](https://login.wordpress.org?redirect_to=https%3A%2F%2Fdeveloper.wordpress.org%2Freference%2Fhooks%2Fsingle_term_title%2F%23comment-5229)
 4. Return with custom prefix text:
 5.     ```php
        add_action('single_term_title', 'single_term_title_28072021');
    
        function single_term_title_28072021($term_name){
    
            $queried_object = get_queried_object();
            $taxonomy = isset($queried_object->taxonomy) ? $queried_object->taxonomy : '';
    
    
            return sprintf(__('Product Category: %s','textdomain'), $term_name);
    
        }
        ```
    
 6. Return with taxonomy prefix text:
 7.     ```php
        add_action('single_term_title', 'single_term_title_29072021');
    
        function single_term_title_29072021($term_name){
    
            $queried_object = get_queried_object();
            $taxonomy = isset($queried_object->taxonomy) ? $queried_object->taxonomy : '';
    
    
            return sprintf(__('%s: %s','textdomain'), $taxonomy, $term_name);
    
        }
        ```
    
 8.  [Log in to add feedback](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fdeveloper.wordpress.org%2Freference%2Fhooks%2Fsingle_term_title%2F%3Freplytocom%3D5229%23feedback-editor-5229)

You must [log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fdeveloper.wordpress.org%2Freference%2Fhooks%2Fsingle_term_title%2F)
before being able to contribute a note or feedback.