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 |
---|---|
823 | function start_el( &$output, $category, $depth = 0, $args = array(), $id = 0 ) { |
824 | extract($args); |
825 |
|
826 | $cat_name = esc_attr( $category->name ); |
827 | $cat_name = apply_filters( 'list_cats', $cat_name, $category ); |
828 | $link = '<a href="' . esc_url( get_term_link($category) ) . '" '; |
829 | if ( $use_desc_for_title == 0 || empty($category->description) ) |
830 | $link .= 'title="' . esc_attr( sprintf(__( 'View all posts filed under %s' ), $cat_name) ) . '"'; |
831 | else |
832 | $link .= 'title="' . esc_attr( strip_tags( apply_filters( 'category_description', $category->description, $category ) ) ) . '"'; |
833 | $link .= '>'; |
834 | $link .= $cat_name . '</a>'; |
835 |
|
836 | if ( !empty($feed_image) || !empty($feed) ) { |
837 | $link .= ' '; |
838 |
|
839 | if ( empty($feed_image) ) |
840 | $link .= '('; |
841 |
|