Core Function
View Source on Trac ↗ wp_title()
wp_title( mixed $sep = '»', mixed $display = true, mixed $seplocation = '' ) Displays or retrieves page title for all areas of blog.
Parameters 1 required
| Name / Type | Description |
|---|---|
| string | $sep Optional. How to separate the various items within the page title. Default '»'. Required |
| $display bool | Optional. Whether to display or retrieve title. Default true. |
| $seplocation string | Optional. Location of the separator (either 'left' or 'right'). |
Return Value
((string)
| void) String when `$display` is false, nothing otherwise.
Function Information
Since Version
1.0.0
Source File
wp-includes/general-template.php
Advertisement