Displays or retrieves page title for category archive.
Description
Useful for category template files for displaying the category page title.The prefix does not automatically place a space between the prefix, so if there should be a space, the parameter value will need to have it at the end.
Parameters
$prefixstringoptional
What to display before the title.Default: ''
$displaybooloptional
Whether to display or retrieve title. Default true.Default: true
Return
string|null
Title when retrieving.
Uses · 1
single_term_title()Displays or retrieves page title for taxonomy term archive.
Signature, return type and hooks compared across 5 parsed releases.
7.0.4
Return type changed from string|void to string|null.verified against source
0.71
Introduced.from the docblock
About this page
Parsed data
Generated from the wordpress-develop 7.1.0 tag, from src/wp-includes/general-template.php, and regenerated for each WordPress release so it tracks the code rather than a snapshot of it.
Corrections
Something wrong on this page? Report it and it gets fixed in the next regeneration.