Menu Adam R Brown

WP hooks navigation: Home/browseActions indexFilters index

Source View: manage_posts_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
348      else
349           $posts_columns['date'] = __('Date');
350      $posts_columns['title'] = __('Title');
351      $posts_columns['author'] = __('Author');
352      $posts_columns['categories'] = __('Categories');
353      $posts_columns['tags'] = __('Tags');
354      if ( !in_array($_GET['post_status'], array('pending', 'draft', 'future')) )
355           $posts_columns['comments'] = '<div class="vers"><img alt="Comments" src="images/comment-grey-bubble.png" /></div>';
356      $posts_columns['status'] = __('Status');
357      $posts_columns = apply_filters('manage_posts_columns', $posts_columns);
358
359      return $posts_columns;
360 }
361
362 // define the columns to display, the syntax is 'internal name' => 'display name'
363 function wp_manage_media_columns() {
364      $posts_columns = array();
365      $posts_columns['cb'] = '<input type="checkbox" />';
366      $posts_columns['icon'] = '';