WPDev.one
Core Function
View Source on Trac ↗

single_month_title()

single_month_title( mixed $prefix = '', mixed $display = true )

Displays or retrieves page title for post archive based on date.

Parameters 0 required

Name / Type Description
$prefix
string

Optional. What to display before the title.

$display
bool

Optional. Whether to display or retrieve title. Default true.

Return Value

((string)
| false | void) False if there's no valid title for the month. Title when retrieving.

Function Information

Since Version
0.71
Source File
wp-includes/general-template.php
Advertisement