Menu Adam R Brown

WP hooks navigation: Home/browseActions indexFilters index

Source View: manage_media_columns

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
307      $posts_columns = array();
308      $posts_columns['cb'] = '<input type="checkbox" onclick="checkAll(document.getElementById(\'posts-filter\'));" />';
309      $posts_columns['icon'] = '';
310      $posts_columns['media'] = _c('Media|media column header');
311      $posts_columns['desc'] = _c('Description|media column header');
312      $posts_columns['date'] = _c('Date Added|media column header');
313      $posts_columns['parent'] = _c('Appears with|media column header');
314      $posts_columns['comments'] = '<div class="vers"><img alt="Comments" src="images/comment-grey-bubble.png" /></div>';
315      $posts_columns['location'] = _c('Location|media column header');
316      $posts_columns = apply_filters('manage_media_columns', $posts_columns);
317
318      return $posts_columns;
319 }
320
321 function wp_manage_pages_columns() {
322      $posts_columns = array();
323      $posts_columns['cb'] = '<input type="checkbox" onclick="checkAll(document.getElementById(\'posts-filter\'));" />';
324      if ( 'draft' === $_GET['post_status'] )
325           $posts_columns['modified'] = __('Modified');