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 |
---|---|
181 | echo $after; |
182 | $previouscat = $currentcat; |
183 | } |
184 | } |
185 |
|
186 | function category_description($category = 0) { |
187 | global $cat, $wpdb, $tablecategories, $cache_categories; |
188 | if (!$category) $category = $cat; |
189 | $category_description = $cache_categories[$category]->category_description; |
190 | $category_description = apply_filters('category_description', $category_description); |
191 | return $category_description; |
192 | } |
193 |
|
194 | // out of the WordPress loop |
195 | function dropdown_cats($optionall = 1, $all = 'All', $sort_column = 'ID', $sort_order = 'asc', |
196 | $optiondates = 0, $optioncount = 0, $hide_empty = 1, $optionnone=FALSE, |
197 | $selected=0, $hide=0) { |
198 | global $tablecategories, $tableposts, $tablepost2cat, $wpdb; |
199 | global $querystring_start, $querystring_equal, $querystring_separator; |