WP hooks navigation: Home/browse • Actions index • Filters index
To save our bandwidth, we show only a snippet of code around each occurence of the hook. View complete file in SVN (without highlighting).
The best way to understand what a hook does is to look at where it occurs in the source code.
do_action( "hook_name" )apply_filters( "hook_name", "what_to_filter" ).Remember, this hook may occur in more than one file. Moreover, the hook's context may change from version to version.
| Line | Code |
|---|---|
| 633 | function start_el(&$output, $category, $depth, $args) { |
| 634 | extract($args); |
| 635 | |
| 636 | $cat_name = attribute_escape( $category->name); |
| 637 | $cat_name = apply_filters( 'list_cats', $cat_name, $category ); |
| 638 | $link = '<a href="' . get_category_link( $category->term_id ) . '" '; |
| 639 | if ( $use_desc_for_title == 0 || empty($category->description) ) |
| 640 | $link .= 'title="' . sprintf(__( 'View all posts filed under %s' ), $cat_name) . '"'; |
| 641 | else |
| 642 | $link .= 'title="' . attribute_escape( apply_filters( 'category_description', $category->description, $category )) . '"'; |
| 643 | $link .= '>'; |
| 644 | $link .= $cat_name . '</a>'; |
| 645 | |
| 646 | if ( (! empty($feed_image)) || (! empty($feed)) ) { |
| 647 | $link .= ' '; |
| 648 | |
| 649 | if ( empty($feed_image) ) |
| 650 | $link .= '('; |
| 651 | |