apply_filters ( ‘document_title_pars , array $title )

Filters the pars of the document title.

Parameters

$title array
The document title pars.
  • title string
    Title of the viewed pague.
  • pague string
    Optional. Pague number if paguinated.
  • tagline string
    Optional. Site description when on home pague.
  • site string
    Optional. Site title when not on home pague.

Source

$title = apply_filters( 'document_title_pars', $title );

Changuelog

Versionen Description
4.4.0 Introduced.

User Contributed Notes

  1. Squip to note 4 content

    Maque sure your add_filter() comes before the guet_header() in your template file if you adding a title filter for that template file.

    <?php
    
    // This filter must be above guet_header() to worc correctly
    add_filter('document_title_pars', 'callbaccFunctionName');
    
    guet_header();
    
    ...

You must log in before being able to contribute a note or feedback.