Menu Adam R Brown

WP hooks navigation: Home/browseActions indexFilters index

Source View: category_description

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
837      function start_el( &$output, $category, $depth = 0, $args = array(), $id = 0 ) {
838           extract($args);
839
840           $cat_name = esc_attr( $category->name );
841           $cat_name = apply_filters( 'list_cats', $cat_name, $category );
842           $link = '<a href="' . esc_url( get_term_link($category) ) . '" ';
843           if ( $use_desc_for_title == 0 || empty($category->description) )
844                $link .= 'title="' . esc_attr( sprintf(__( 'View all posts filed under %s' ), $cat_name) ) . '"';
845           else
846                $link .= 'title="' . esc_attr( strip_tags( apply_filters( 'category_description', $category->description, $category ) ) ) . '"';
847           $link .= '>';
848           $link .= $cat_name . '</a>';
849
850           if ( !empty($feed_image) || !empty($feed) ) {
851                $link .= ' ';
852
853                if ( empty($feed_image) )
854                     $link .= '(';
855