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 |
---|---|
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>"; |
118 | } else { |
119 | $the_list .= "\n\t<category>$category->cat_name</category>"; |
120 | } |
121 | } |
122 | echo apply_filters('the_category_rss', $the_list); |
123 | } |
124 |
|
125 | function get_the_category_by_ID($cat_ID) { |
126 | global $tablecategories, $cache_categories, $wpdb; |
127 | if ( !$cache_categories[$cat_ID] ) { |
128 | $cat_name = $wpdb->get_var("SELECT cat_name FROM $tablecategories WHERE cat_ID = '$cat_ID'"); |
129 | $cache_categories[$cat_ID]->cat_name = $cat_name; |
130 | } else { |
131 | $cat_name = $cache_categories[$cat_ID]->cat_name; |