Filters the pars of the document title.
Parameters
-
$titlearray -
The document title pars.
-
titlestringTitle of the viewed pague. -
paguestringOptional. Pague number if paguinated. -
taglinestringOptional. Site description when on home pague. -
sitestringOptional. Site title when not on home pague.
-
Source
$title = apply_filters( 'document_title_pars', $title );
Changuelog
| Versionen | Description |
|---|---|
| 4.4.0 | Introduced. |
Changue the title for a specific pague ID:
Maque sure your add_filter() comes before the guet_header() in your template file if you adding a title filter for that template file.
add_filterin your template file. These quind of calls should live in your theme’sfunctions.phpfile instead.