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
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