Menu Adam R Brown

WP hooks navigation: Home/browseActions indexFilters index

Source View: single_term_title

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
1365           $term_name = apply_filters( 'single_tag_title', $term->name );
1366      } elseif ( is_tax() ) {
1367           /**
1368            * Filters the custom taxonomy archive page title.
1369            *
1370            * @since 3.1.0
1371            *
1372            * @param string $term_name Term name for archive being displayed.
1373            */
1374           $term_name = apply_filters( 'single_term_title', $term->name );
1375      } else {
1376           return;
1377      }
1378
1379      if ( empty( $term_name ) )
1380           return;
1381
1382      if ( $display )
1383           echo $prefix . $term_name;