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
160 } else {
161      list($post_mime_types, $avail_post_mime_types) = wp_edit_attachments_query();
162 }
163
164 $is_trash = ( isset($_GET['status']) && $_GET['status'] == 'trash' );
165
166 wp_enqueue_script('media');
167 require_once('admin-header.php');
168
169 do_action('restrict_manage_posts');
170 ?>
171
172 <div class="wrap">
173 <?php screen_icon(); ?>
174 <h2><?php echo esc_html( $title ); ?> <a href="media-new.php" class="button add-new-h2"><?php echo esc_html_x('Add New', 'file'); ?></a> <?php
175 if ( isset($_GET['s']) && $_GET['s'] )
176      printf( '<span class="subtitle">' . __('Search results for &#8220;%s&#8221;') . '</span>', esc_html( get_search_query() ) ); ?>
177 </h2>
178