Welcome, visitor! Log in
 

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
123 <?php $_SERVER['REQUEST_URI'] = remove_query_arg(array('message'), $_SERVER['REQUEST_URI']);
124 endif;
125 ?>
126
127 <p id="post-search">
128      <input type="text" id="post-search-input" name="s" value="<?php the_search_query(); ?>" />
129      <input type="submit" value="<?php _e( 'Search Media' ); ?>" class="button" />
130 </p>
131
132 <?php do_action('restrict_manage_posts'); ?>
133
134 <div class="tablenav">
135
136 <?php
137 $page_links = paginate_links( array(
138      'base' => add_query_arg( 'paged', '%#%' ),
139      'format' => '',
140      'total' => $wp_query->max_num_pages,
141      'current' => $_GET['paged']