apply_filters( 'get_the_archive_title', string $title , string $original_title , string $prefix )
Filters the archive title.
Parameters
- $title
-
(string) Archive title to be displayed.
- $original_title
-
(string) Archive title without prefix.
- $prefix
-
(string) Archive title prefix.
Source
Changelog
Version | Description |
---|---|
5.5.0 | Added the $prefix and $original_title parameters. |
4.1.0 | Introduced. |
User Contributed Notes
You must log in before being able to contribute a note or feedback.
TIP: Using the hook to get rid of archive “label”:
If you would like to get rid of the “Category:”, “Tag:”, “Author:”, “Archives:” and “Other taxonomy name:” in the archive title, use this little function in your (child) theme
functions.php
file:Expand full source codeCollapse full source code
Since 5.5.0 the nicer approach to removing prefixes would be: