Source View: restrict_manage_posts

To save our bandwidth, we show only a snippet of code around each occurence of the hook. View complete file in SVN (without highlighting).

Understanding Source Code

The best way to understand what a hook does is to look at where it occurs in the source code.

  • Action hooks look like this: do_action( "hook_name" )
  • Filter hooks look like this: 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.

Source View

Line Code
295 }
296 ?>
297 </select>
298 <?php } ?>
299
300 <?php
301 $dropdown_options = array('show_option_all' => __('View all categories'), 'hide_empty' => 0, 'hierarchical' => 1,
302      'show_count' => 0, 'orderby' => 'name', 'selected' => $cat);
303 wp_dropdown_categories($dropdown_options);
304 do_action('restrict_manage_posts');
305 ?>
306 <input type="submit" id="post-query-submit" value="<?php esc_attr_e('Filter'); ?>" class="button-secondary" />
307 <?php }
308
309 if ( $is_trash && current_user_can('edit_others_posts') ) { ?>
310 <input type="submit" name="delete_all" id="delete_all" value="<?php esc_attr_e('Empty Trash'); ?>" class="button-secondary apply" />
311 <?php } ?>
312 </div>
313