Menu Adam R Brown

WP hooks navigation: Home/browseActions indexFilters index

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.

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
114
115 <form name="viewcat" id="viewcat" action="" method="get">
116      <fieldset>
117      <legend><?php _e('Browse Category&hellip;') ?></legend>
118      <?php wp_dropdown_categories('show_option_all='.__('All').'&hide_empty=1&hierarchical=1&show_count=1&selected='.$cat);?>
119      <input type="submit" name="submit" value="<?php _e('Show Category') ?>" class="button" /> 
120      </fieldset>
121 </form>
122
123 <?php do_action('restrict_manage_posts'); ?>
124
125 <br style="clear:both;" />
126
127 <?php
128 // define the columns to display, the syntax is 'internal name' => 'display name'
129 $posts_columns = array(
130      'id'         => '<div style="text-align: center">' . __('ID') . '</div>',
131      'date'       => __('When'),
132      'title'      => __('Title'),