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
209                          'show_option_all' => __( 'View all categories' ),
210                          'hide_empty' => 0,
211                          'hierarchical' => 1,
212                          'show_count' => 0,
213                          'orderby' => 'name',
214                          'selected' => $cat
215                     );
216                     wp_dropdown_categories( $dropdown_options );
217                }
218                do_action( 'restrict_manage_posts' );
219                submit_button( __( 'Filter' ), 'button', false, false, array( 'id' => 'post-query-submit' ) );
220           }
221
222           if ( $this->is_trash && current_user_can( get_post_type_object( $this->screen->post_type )->cap->edit_others_posts ) ) {
223                submit_button( __( 'Empty Trash' ), 'apply', 'delete_all', false );
224           }
225 ?>
226           </div>
227 <?php