get_the_archive_title filter-hook . WP 4.1.0
Filters the archive title.
Usage
add_filter( 'get_the_archive_title', 'filter_function_name_1902', 10, 3 ); function filter_function_name_1902( $title, $original_title, $prefix ){ // filter... return $title; }
- $title(string)
- Archive title to be displayed.
- $original_title(string)
- Archive title without prefix.
- $prefix(string)
- Archive title prefix.
Changelog
Since 4.1.0 | Introduced. |
Since 5.5.0 | Added the $prefix and $original_title parameters. |
Where the hook is called
get_the_archive_title
wp-includes/general-template.php 1744
return apply_filters( 'get_the_archive_title', $title, $original_title, $prefix );