apply_filters( 'get_the_archive_title', string $title, string $original_title, string $prefix )
- Since
- 4.1.0, 5.5.0
Filters the archive title.
Compatibility
- WordPress
- since 5.5.0
- 6.7.7
- 6.8.8
- 6.9.7
- 7.0.4
- 7.1.0
Present in every tracked release (6.7.7 to 7.1.0).
Parameters
$titlestring- Archive title to be displayed.
$original_titlestring- Archive title without prefix.
$prefixstring- Archive title prefix.
Where this hook fires · 1
wp-includes/general-template.php:2018get_the_archive_title()
Source code
* @since 5.5.0 Added the `$prefix` and `$original_title` parameters. * * @param string $title Archive title to be displayed. * @param string $original_title Archive title without prefix. * @param string $prefix Archive title prefix. */ return apply_filters( 'get_the_archive_title', $title, $original_title, $prefix );} /** * Displays category, tag, term, or author description. * * @since 4.1.0Changelog
Introduced in 4.1.0. Unchanged from 6.7.7 through 7.1.0.
Signature, return type and hooks compared across 5 parsed releases.
5.5.0
Added the
$prefix and $original_title parameters.from the docblock4.1.0
Introduced.from the docblock
About this page
- Parsed data
- Generated from the wordpress-develop 7.1.0 tag, and regenerated for each WordPress release so it tracks the code rather than a snapshot of it.
- Corrections
- Something wrong on this page? Report it and it gets fixed in the next regeneration.