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
1310      function start_el(&$output, $category, $depth, $args) {
1311           extract($args);
1312
1313           $cat_name = attribute_escape( $category->name);
1314           $cat_name = apply_filters( 'list_cats', $cat_name, $category );
1315           $link = '<a href="' . get_category_link( $category->term_id ) . '" ';
1316           if ( $use_desc_for_title == 0 || empty($category->description) )
1317                $link .= 'title="' . sprintf(__( 'View all posts filed under %s' ), $cat_name) . '"';
1318           else
1319                $link .= 'title="' . attribute_escape( apply_filters( 'category_description', $category->description, $category )) . '"';
1320           $link .= '>';
1321           $link .= $cat_name . '</a>';
1322
1323           if ( (! empty($feed_image)) || (! empty($feed)) ) {
1324                $link .= ' ';
1325
1326                if ( empty($feed_image) )
1327                     $link .= '(';
1328