post_type_archive_title WordPress Filter Hook

The post_type_archive_title hook is a Wordpress hook that allows you to change the title of a post type archive. This can be useful if you want to change the title of an archive to something more specific or descriptive.

apply_filters( 'post_type_archive_title', string $post_type_name, string $post_type ) #

Filters the post type archive title.


Parameters

$post_type_name

(string)Post type 'name' label.

$post_type

(string)Post type.


Top ↑

Source

File: wp-includes/general-template.php

View on Trac



Top ↑

Changelog

Changelog
VersionDescription
3.1.0Introduced.

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.

Show More
Show More