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 |
---|---|
177 | extract($r); |
178 |
|
179 | $categories = get_categories($r); |
180 |
|
181 | $output = ''; |
182 | if ( ! empty($categories) ) { |
183 | $output = "<select name='$name' id='$name' class='$class'>\n"; |
184 |
|
185 | if ( $show_option_all ) { |
186 | $show_option_all = apply_filters('list_cats', $show_option_all); |
187 | $output .= "\t<option value='0'>$show_option_all</option>\n"; |
188 | } |
189 |
|
190 | if ( $show_option_none) { |
191 | $show_option_none = apply_filters('list_cats', $show_option_none); |
192 | $output .= "\t<option value='-1'>$show_option_none</option>\n"; |
193 | } |
194 |
|
195 | if ( $hierarchical ) |
196 | $depth = 0; // Walk the full depth. |
197 | else |
198 | $depth = -1; // Flat. |
199 |
|
200 | $output .= walk_category_dropdown_tree($categories, $depth, $r); |