post_type_archive_title filter-hook . WP 3.1.0
Filters the post type archive title.
Usage
add_filter( 'post_type_archive_title', 'filter_function_name_742', 10, 2 ); function filter_function_name_742( $post_type_name, $post_type ){ // filter... return $post_type_name; }
- $post_type_name(string)
- Post type 'name' label.
- $post_type(string)
- Post type.
Changelog
Since 3.1.0 | Introduced. |
Where the hook is called
post_type_archive_title
wp-includes/general-template.php 1483
$title = apply_filters( 'post_type_archive_title', $post_type_obj->labels->name, $post_type );