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.
This hook occurs 2 times in this file.
Line | Code |
---|---|
185 | extract($r); |
186 |
|
187 | $categories = get_categories($r); |
188 |
|
189 | $output = ''; |
190 | if ( ! empty($categories) ) { |
191 | $output = "<select name='$name' id='$name' class='$class'>\n"; |
192 |
|
193 | if ( $show_option_all ) { |
194 | $show_option_all = apply_filters('list_cats', $show_option_all); |
195 | $output .= "\t<option value='0'>$show_option_all</option>\n"; |
196 | } |
197 |
|
198 | if ( $show_option_none) { |
199 | $show_option_none = apply_filters('list_cats', $show_option_none); |
200 | $output .= "\t<option value='-1'>$show_option_none</option>\n"; |
201 | } |
202 |
|
203 | if ( $hierarchical ) |
204 | $depth = 0; // Walk the full depth. |
205 | else |
206 | $depth = -1; // Flat. |
207 |
|
208 | $output .= walk_category_dropdown_tree($categories, $depth, $r); |