Menu Adam R Brown

WP hooks navigation: Home/browseActions indexFilters index

Source View: document_title_parts

To save our bandwidth, we show only a snippet of code around each occurence of the hook. View complete file in SVN (without highlighting).

Understanding Source Code

The best way to understand what a hook does is to look at where it occurs in the source code.

Remember, this hook may occur in more than one file. Moreover, the hook's context may change from version to version.

Source View

Line Code
1032       * @param array $title {
1033       *     The document title parts.
1034       *
1035       *     @type string $title   Title of the viewed page.
1036       *     @type string $page    Optional. Page number if paginated.
1037       *     @type string $tagline Optional. Site description when on home page.
1038       *     @type string $site    Optional. Site title when not on home page.
1039       * }
1040       */
1041      $title = apply_filters( 'document_title_parts', $title );
1042
1043      $title = implode( " $sep ", array_filter( $title ) );
1044      $title = wptexturize( $title );
1045      $title = convert_chars( $title );
1046      $title = esc_html( $title );
1047      $title = capital_P_dangit( $title );
1048
1049      return $title;
1050 }