Menu Adam R Brown

WP hooks navigation: Home/browseActions indexFilters index

Source View: manage_pages_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
383      elseif ( 'pending' === $_GET['post_status'] )
384           $posts_columns['modified'] = __('Submitted');
385      else
386           $posts_columns['date'] = __('Date');
387      $posts_columns['title'] = __('Title');
388      $posts_columns['author'] = __('Author');
389      if ( !in_array($_GET['post_status'], array('pending', 'draft', 'future')) )
390           $posts_columns['comments'] = '<div class="vers"><img alt="" src="images/comment-grey-bubble.png" /></div>';
391      $posts_columns['status'] = __('Status');
392      $posts_columns = apply_filters('manage_pages_columns', $posts_columns);
393
394      return $posts_columns;
395 }
396
397 /*
398  * display one row if the page doesn't have any children
399  * otherwise, display the row and its children in subsequent rows
400  */
401 function display_page_row( $page, $level = 0 ) {