Title: get_the_archive_title_prefix
Published: August 11, 2020
Last modified: August 20, 2026

---

# apply_filters( ‘get_the_archive_title_prefix’, string $prefix )

## In this article

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

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

Filters the archive title prefix.

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

 `$prefix`string

Archive title prefix.

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

    ```php
    $prefix = apply_filters( 'get_the_archive_title_prefix', $prefix );
    ```

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

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

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

Retrieves the archive title based on the queried object.

  |

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

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

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

 1.  [Skip to note 2 content](https://developer.wordpress.org/reference/hooks/get_the_archive_title_prefix/?output_format=md#comment-content-5684)
 2.   [Priscilla Chapman](https://profiles.wordpress.org/priscillamc/)  [  5 years ago  ](https://developer.wordpress.org/reference/hooks/get_the_archive_title_prefix/#comment-5684)
 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%2Fget_the_archive_title_prefix%2F%23comment-5684)
    Vote results for this note: 2[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%2Fget_the_archive_title_prefix%2F%23comment-5684)
 4. Remove all archive title prefixes
 5.     ```php
        add_filter( 'get_the_archive_title_prefix', '__return_false' );
        ```
    
 6.  [Log in to add feedback](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fdeveloper.wordpress.org%2Freference%2Fhooks%2Fget_the_archive_title_prefix%2F%3Freplytocom%3D5684%23feedback-editor-5684)

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