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
1126       * @param array $title {
1127       *     The document title parts.
1128       *
1129       *     @type string $title   Title of the viewed page.
1130       *     @type string $page    Optional. Page number if paginated.
1131       *     @type string $tagline Optional. Site description when on home page.
1132       *     @type string $site    Optional. Site title when not on home page.
1133       * }
1134       */
1135      $title = apply_filters( 'document_title_parts', $title );
1136
1137      $title = implode( " $sep ", array_filter( $title ) );
1138      $title = wptexturize( $title );
1139      $title = convert_chars( $title );
1140      $title = esc_html( $title );
1141      $title = capital_P_dangit( $title );
1142
1143      return $title;
1144 }