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 |
---|---|
151 | function the_category($separator = '', $parents='') { |
152 | echo get_the_category_list($separator, $parents); |
153 | } |
154 |
|
155 | function category_description($category = 0) { |
156 | global $cat; |
157 | if ( !$category ) |
158 | $category = $cat; |
159 | $category = & get_category($category); |
160 | return apply_filters('category_description', $category->category_description, $category->cat_ID); |
161 | } |
162 |
|
163 | function wp_dropdown_categories($args = '') { |
164 | if ( is_array($args) ) |
165 | $r = &$args; |
166 | else |
167 | parse_str($args, $r); |
168 |
|
169 | $defaults = array('show_option_all' => '', 'show_option_none' => '', 'orderby' => 'ID', |