post_type_archive_title

SummerySummery

Display or retrieve title for a post type archive.

Syntax

post_type_archive_title( string $prefix = '', bool $display = true )

DescriptionDescription

This is optimized for archive.php and archive-{$post_type}.php template files for displaying the title of the post type.

ParametersParameters

$prefix

(string) (Optional) What to display before the title.

Default value: ''

$display

(bool) (Optional) Whether to display or retrieve title.

Default value: true

ReturnReturn

(string|void) Title when retrieving, null when displaying or failure.

SourceSource

File: wp-includes/general-template.php


			

ChangelogChangelog

Changelog
Version Description
3.1.0 Introduced.
Scroll to Top