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
154 $messages[2] = __('Media deleted.');
155 $messages[3] = __('Error saving media attachment.');
156
157 if ( isset($_GET['message']) && (int) $_GET['message'] ) {
158      $message = $messages[$_GET['message']];
159      $_SERVER['REQUEST_URI'] = remove_query_arg(array('message'), $_SERVER['REQUEST_URI']);
160 }
161 ?>
162
163 <?php do_action('restrict_manage_posts'); ?>
164
165 <div class="wrap">
166 <?php screen_icon(); ?>
167 <h2><?php echo wp_specialchars( $title );
168 if ( isset($_GET['s']) && $_GET['s'] )
169      printf( '<span class="subtitle">' . __('Search results for &#8220;%s&#8221;') . '</span>', wp_specialchars( get_search_query() ) ); ?>
170 </h2>
171
172 <?php