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