W3cubDocs

/WordPress

apply_filters( ‘post_type_archive_title’, string $post_type_name, string $post_type )

Filters the post type archive title.

Parameters

$post_type_namestring
Post type 'name' label.
$post_typestring
Post type.

Source

$title = apply_filters( 'post_type_archive_title', $post_type_obj->labels->name, $post_type );

Changelog

Version Description
3.1.0 Introduced.

© 2003–2024 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/post_type_archive_title