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 |
---|---|
99 | if ($category->category_parent) $thelist .= get_category_parents($category->category_parent, FALSE); |
100 | $thelist .= "$category->cat_name</a>"; |
101 | case '': |
102 | default: |
103 | $thelist .= '<a href="' . get_category_link(0, $category->category_id, $category->category_nicename) . '" title="' . sprintf(__("View all posts in %s"), $category->cat_name) . '">'.$category->cat_name.'</a>'; |
104 | } |
105 | ++$i; |
106 | } |
107 | } |
108 | echo apply_filters('the_category', $thelist); |
109 | } |
110 |
|
111 | function the_category_rss($type = 'rss') { |
112 | $categories = get_the_category(); |
113 | $the_list = ''; |
114 | foreach ($categories as $category) { |
115 | $category->cat_name = stripslashes(convert_chars($category->cat_name)); |
116 | if ('rdf' == $type) { |
117 | $the_list .= "\n\t<dc:subject>$category->cat_name</dc:subject>"; |