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 |
---|---|
90 | if ( in_array( $category->term_id, $args['selected_cats'] ) ) { |
91 | $inner_class .= ' selected'; |
92 | $aria_cheched = 'true'; |
93 | } |
94 |
|
95 | /** This filter is documented in wp-includes/category-template.php */ |
96 | $output .= "\n" . '<li' . $class . '>' . |
97 | '<div class="' . $inner_class . '" data-term-id=' . $category->term_id . |
98 | ' tabindex="0" role="checkbox" aria-checked="' . $aria_cheched . '">' . |
99 | esc_html( apply_filters( 'the_category', $category->name ) ) . '</div>'; |
100 | } else { |
101 | /** This filter is documented in wp-includes/category-template.php */ |
102 | $output .= "\n<li id='{$taxonomy}-{$category->term_id}'$class>" . |
103 | '<label class="selectit"><input value="' . $category->term_id . '" type="checkbox" name="'.$name.'[]" id="in-'.$taxonomy.'-' . $category->term_id . '"' . |
104 | checked( in_array( $category->term_id, $args['selected_cats'] ), true, false ) . |
105 | disabled( empty( $args['disabled'] ), false, false ) . ' /> ' . |
106 | esc_html( apply_filters( 'the_category', $category->name ) ) . '</label>'; |
107 | } |
108 | } |
109 |
|
110 | /** |
111 | * Ends the element output, if needed. |
112 | * |
113 | * @see Walker::end_el() |
114 | * |
115 | * @since 2.5.1 |