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 |
---|---|
390 | $tab_index_attribute = " tabindex=\"$tab_index\""; |
391 |
|
392 | $categories = get_categories( $r ); |
393 |
|
394 | $output = ''; |
395 | if ( ! empty( $categories ) ) { |
396 | $output = "<select name='$name' id='$name' class='$class' $tab_index_attribute>\n"; |
397 |
|
398 | if ( $show_option_all ) { |
399 | $show_option_all = apply_filters( 'list_cats', $show_option_all ); |
400 | $output .= "\t<option value='0'>$show_option_all</option>\n"; |
401 | } |
402 |
|
403 | if ( $show_option_none ) { |
404 | $show_option_none = apply_filters( 'list_cats', $show_option_none ); |
405 | $output .= "\t<option value='-1'>$show_option_none</option>\n"; |
406 | } |
407 |
|
408 | if ( $hierarchical ) |
409 | $depth = $r['depth']; // Walk the full depth. |
410 | else |
411 | $depth = -1; // Flat. |
412 |
|
413 | $output .= walk_category_dropdown_tree( $categories, $depth, $r ); |