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