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
1620           $term_name = apply_filters( 'single_tag_title', $term->name );
1621      } elseif ( is_tax() ) {
1622           /**
1623            * Filters the custom taxonomy archive page title.
1624            *
1625            * @since 3.1.0
1626            *
1627            * @param string $term_name Term name for archive being displayed.
1628            */
1629           $term_name = apply_filters( 'single_term_title', $term->name );
1630      } else {
1631           return;
1632      }
1633
1634      if ( empty( $term_name ) ) {
1635           return;
1636      }
1637
1638      if ( $display ) {