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 |
---|---|
236 | $id = "popular-$taxonomy-$term->term_id"; |
237 | $checked = in_array( $term->term_id, $checked_terms ) ? 'checked="checked"' : ''; |
238 | ?> |
239 |
|
240 | <li id="<?php echo $id; ?>" class="popular-category"> |
241 | <label class="selectit"> |
242 | <input id="in-<?php echo $id; ?>" type="checkbox" <?php echo $checked; ?> value="<?php echo (int) $term->term_id; ?>" <?php disabled( ! current_user_can( $tax->cap->assign_terms ) ); ?> /> |
243 | <?php |
244 | /** This filter is documented in wp-includes/category-template.php */ |
245 | echo esc_html( apply_filters( 'the_category', $term->name, '', '' ) ); |
246 | ?> |
247 | </label> |
248 | </li> |
249 |
|
250 | <?php |
251 | } |
252 | return $popular_ids; |
253 | } |
254 |
|
Line | Code |
284 |
|
285 | if ( empty( $categories ) ) { |
286 | return; |
287 | } |
288 |
|
289 | foreach ( $categories as $category ) { |
290 | $cat_id = $category->term_id; |
291 |
|
292 | /** This filter is documented in wp-includes/category-template.php */ |
293 | $name = esc_html( apply_filters( 'the_category', $category->name, '', '' ) ); |
294 | $checked = in_array( $cat_id, $checked_categories ) ? ' checked="checked"' : ''; |
295 | echo '<li id="link-category-', $cat_id, '"><label for="in-link-category-', $cat_id, '" class="selectit"><input value="', $cat_id, '" type="checkbox" name="link_category[]" id="in-link-category-', $cat_id, '"', $checked, '/> ', $name, '</label></li>'; |
296 | } |
297 | } |
298 |
|
299 | /** |
300 | * Adds hidden fields with the data for use in the inline editor for posts and pages. |
301 | * |
302 | * @since 2.7.0 |